~timo-jyrinki/ubuntu-ui-toolkit/test_jenkins_3_fail

« back to all changes in this revision

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

  • Committer: Christian Dywan
  • Date: 2015-11-30 15:39:52 UTC
  • mto: This revision was merged to the branch mainline in revision 1755.
  • Revision ID: christian.dywan@canonical.com-20151130153952-608ys88e6br7wkth
C++ types for apicheck testing

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 UCARGUMENT_H
 
20
#define UCARGUMENT_H
 
21
 
 
22
#include <QtCore/QObject>
 
23
#include <QtCore/QStringList>
 
24
#include <QtCore/QVariant>
 
25
 
 
26
class UCArgument : public QObject
 
27
{
 
28
    Q_OBJECT
 
29
 
 
30
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
 
31
 
 
32
public:
 
33
    explicit UCArgument(QObject *parent = 0);
 
34
 
 
35
    QString name() const;
 
36
    void setName(const QString &name);
 
37
 
 
38
    Q_INVOKABLE QString paw(int i) const;
 
39
 
 
40
Q_SIGNALS:
 
41
    void nameChanged();
 
42
 
 
43
private:
 
44
    QString m_name;
 
45
};
 
46
 
 
47
#endif // UCARGUMENT_H