OSDN Git Service

add new class
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Fri, 4 Jun 2004 15:42:08 +0000 (15:42 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Fri, 4 Jun 2004 15:42:08 +0000 (15:42 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1122 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/libkita/Makefile.am
kita/src/libkita/signalcollection.cpp [new file with mode: 0644]
kita/src/libkita/signalcollection.h [new file with mode: 0644]

index 1a3228f..6fab4b4 100644 (file)
@@ -2,9 +2,9 @@ INCLUDES = $(all_includes)
 
 lib_LTLIBRARIES = libkita.la
 
-libkita_la_SOURCES = thread.h thread.cpp qcp932codec.cpp qcp932codec.h board.h board.cpp bbs.h bbs.cpp category.h category.cpp favoritethreads.h favoritethreads.cpp k2ch_articlefile.h k2ch_articlefile.cpp kita_misc.cpp threadinfo.h threadinfo.cpp access.cpp cache.cpp favoriteboards.cpp parsemisc.cpp kitaconfig.cpp datmanager.cpp datinfo.cpp
+libkita_la_SOURCES = thread.h thread.cpp qcp932codec.cpp qcp932codec.h board.h board.cpp bbs.h bbs.cpp category.h category.cpp favoritethreads.h favoritethreads.cpp k2ch_articlefile.h k2ch_articlefile.cpp kita_misc.cpp threadinfo.h threadinfo.cpp access.cpp cache.cpp favoriteboards.cpp parsemisc.cpp kitaconfig.cpp datmanager.cpp datinfo.cpp signalcollection.cpp
 
 METASOURCES = AUTO
 
 SUBDIRS =  tests
-noinst_HEADERS = kita_misc.h access.h cache.h favoriteboards.h parsemisc.h kitaconfig.h datmanager.h datinfo.h
+noinst_HEADERS = kita_misc.h access.h cache.h favoriteboards.h parsemisc.h kitaconfig.h datmanager.h datinfo.h signalcollection.cpp
diff --git a/kita/src/libkita/signalcollection.cpp b/kita/src/libkita/signalcollection.cpp
new file mode 100644 (file)
index 0000000..e8eecb5
--- /dev/null
@@ -0,0 +1,25 @@
+/***************************************************************************
+ *   Copyright (C) 2004 by Kita Developers                                 *
+ *   ikemo@users.sourceforge.jp                                            *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ ***************************************************************************/
+#include "signalcollection.h"
+
+using namespace Kita;
+
+static Kita::SignalCollection* instance = 0;
+
+SignalCollection::SignalCollection()
+{}
+
+SignalCollection::~SignalCollection()
+{}
+
+SignalCollection* SignalCollection::getInstance()
+{}
+
+#include "signalcollection.moc"
diff --git a/kita/src/libkita/signalcollection.h b/kita/src/libkita/signalcollection.h
new file mode 100644 (file)
index 0000000..55c9537
--- /dev/null
@@ -0,0 +1,37 @@
+/***************************************************************************
+ *   Copyright (C) 2004 by Kita Developers                                 *
+ *   ikemo@users.sourceforge.jp                                            *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ ***************************************************************************/
+#ifndef KITASIGNALCOLLECTION_H
+#define KITASIGNALCOLLECTION_H
+
+#include <kparts/browserextension.h>
+
+#include <qobject.h>
+
+namespace Kita
+{
+
+    /**
+    @author Hideki Ikemoto
+    */
+    class SignalCollection : public QObject
+    {
+        Q_OBJECT
+        SignalCollection();
+        ~SignalCollection();
+    public:
+        static SignalCollection* getInstance();
+    
+    signals:
+        void openURLRequest( const KURL& url, const KParts::URLArgs &args = KParts::URLArgs() );
+    };
+
+}
+
+#endif