File: qservercount.h

package info (click to toggle)
libindicate-qt 0.2.5.91-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 388 kB
  • ctags: 262
  • sloc: cpp: 1,655; makefile: 6
file content (34 lines) | stat: -rw-r--r-- 585 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Example of an application which only defines a server count
 *
 * Copyright 2009 Canonical Ltd.
 *
 * Authors:
 * - Aurélien Gâteau <aurelien.gateau@canonical.com>
 *
 * License: LGPL v2.1 or LGPL v3
 */
#ifndef QSERVERCOUNT_H
#define QSERVERCOUNT_H

#include <QApplication>
#include <QObject>

#include <qindicateserver.h>

class Controller : public QObject
{
Q_OBJECT
public:
    Controller(QIndicate::Server*);

public Q_SLOTS:
    void slotServerDisplay();
    void increaseCount();

private:
    QIndicate::Server* mServer;
    int mCount;
};

#endif /* QSERVERCOUNT_H */