OSDN Git Service

>>910
[kita/kita.git] / kita / src / libkita / signalcollection.h
1 /***************************************************************************
2  *   Copyright (C) 2004 by Kita Developers                                 *
3  *   ikemo@users.sourceforge.jp                                            *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  ***************************************************************************/
10 #ifndef KITASIGNALCOLLECTION_H
11 #define KITASIGNALCOLLECTION_H
12
13 #include <kparts/browserextension.h>
14
15 #include <qobject.h>
16
17 namespace Kita
18 {
19     class Thread;
20
21     /**
22     @author Hideki Ikemoto
23     */
24     class SignalCollection : public QObject
25     {
26         Q_OBJECT
27         
28         static SignalCollection* instance;
29         
30         SignalCollection();
31         ~SignalCollection();
32     public:
33         static SignalCollection* getInstance();
34     
35     signals:
36         void openURLRequest( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs() );
37         void signalChangeStatusbar( const QString& );
38         void writeSucceeded();
39         void bookmarked( const QString& datURL, bool on );
40         void showThreadCompleted( const KURL& threadUrl );
41         void signalThread( const Kita::Thread* );
42         void openBoardRequested( const QString& boardURL, bool withNewTab );
43
44         /* from: KitaMainWindow, KitaNavi, KitaWriteDialog */
45         /* to  : KitaHTMLPart                              */
46         void windowDeactivated();
47         void kitaIsActive();    
48
49         /* from: KitaHTMLPart                              */
50         /* to  : KitaMainWindow, KitaNavi, KitaWriteDialog */
51         void isKitaActive();
52
53         /* to : KitaHTMLPart */
54         void redrawScreen( const KURL& url );
55     };
56
57 }
58
59 #endif