~zsombi/ubuntu-ui-toolkit/platform_menu

« back to all changes in this revision

Viewing changes to tests/api/Extinct/Animals/plugin/tarpan.h

  • Committer: Christian Dywan
  • Date: 2015-12-18 15:26:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1787.
  • Revision ID: christian.dywan@canonical.com-20151218152604-5krulaq0f8ytkbg0
Also include the C++ class name of C++ classes in .api

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2015 Canonical Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Author: Christian Dywan <christian.dywan@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef UCTARPAN_H
 
20
#define UCTARPAN_H
 
21
 
 
22
#include <QtCore/QObject>
 
23
#include <QtCore/QString>
 
24
 
 
25
class EATarpan : public QObject
 
26
{
 
27
    Q_OBJECT
 
28
 
 
29
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
 
30
 
 
31
public:
 
32
    explicit EATarpan(QObject *parent = 0);
 
33
 
 
34
    QString name() const;
 
35
    void setName(const QString &name);
 
36
 
 
37
    Q_INVOKABLE void kick() const;
 
38
 
 
39
Q_SIGNALS:
 
40
    void nameChanged();
 
41
 
 
42
private:
 
43
    QString m_name;
 
44
};
 
45
 
 
46
#endif // UCTARPAN_H