~ubuntu-branches/ubuntu/vivid/quassel/vivid-updates

« back to all changes in this revision

Viewing changes to src/client/abstractui.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2013-03-06 15:07:41 UTC
  • mfrom: (1.1.49)
  • Revision ID: package-import@ubuntu.com-20130306150741-pys1igw1g8uhja38
Tags: 0.9~beta1-0ubuntu1
* New upstream beta release
  - Remove debian/patches/0001-Support-intermediate-CA-certificates.patch,
    incorporated upstream
  - Remove 0002-Allow-the-core-to-use-expired-certificates.patch,
    incorporated upstream
  - Update kubuntu_02_enable_message_indicator.diff for 0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2005-2012 by the Quassel Project                        *
 
2
 *   Copyright (C) 2005-2013 by the Quassel Project                        *
3
3
 *   devel@quassel-irc.org                                                 *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
15
15
 *   You should have received a copy of the GNU General Public License     *
16
16
 *   along with this program; if not, write to the                         *
17
17
 *   Free Software Foundation, Inc.,                                       *
18
 
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 
18
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
19
19
 ***************************************************************************/
20
20
 
21
21
#ifndef ABSTRACTUI_H
33
33
class QAction;
34
34
class QMenu;
35
35
 
36
 
class AbstractUi : public QObject {
37
 
  Q_OBJECT
 
36
class AbstractUi : public QObject
 
37
{
 
38
    Q_OBJECT
38
39
 
39
40
public:
40
 
  AbstractUi(QObject *parent = 0) : QObject(parent) {}
41
 
  virtual ~AbstractUi() {}
42
 
  virtual void init() = 0;  // called after the client is initialized
43
 
  virtual MessageModel *createMessageModel(QObject *parent) = 0;
44
 
  virtual AbstractMessageProcessor *createMessageProcessor(QObject *parent) = 0;
 
41
    AbstractUi(QObject *parent = 0) : QObject(parent) {}
 
42
    virtual ~AbstractUi() {}
 
43
    virtual void init() = 0; // called after the client is initialized
 
44
    virtual MessageModel *createMessageModel(QObject *parent) = 0;
 
45
    virtual AbstractMessageProcessor *createMessageProcessor(QObject *parent) = 0;
45
46
 
46
47
protected slots:
47
 
  virtual void connectedToCore() {}
48
 
  virtual void disconnectedFromCore() {}
 
48
    virtual void connectedToCore() {}
 
49
    virtual void disconnectedFromCore() {}
49
50
 
50
51
signals:
51
 
  void connectToCore(const QVariantMap &connInfo);
52
 
  void disconnectFromCore();
 
52
    void connectToCore(const QVariantMap &connInfo);
 
53
    void disconnectFromCore();
53
54
};
54
55
 
 
56
 
55
57
#endif