~unity-ui-team/ubuntu-ui-toolkit/trunk-ubuntu-ui-toolkit-image-extension-crash-workaround

« back to all changes in this revision

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

  • Committer: CI Train Bot
  • Author(s): Albert Astals Cid, Zsombor Egri, Loïc Molinari, Tim Peeters, Zoltán Balogh, Christian Dywan
  • Date: 2015-12-16 10:01:43 UTC
  • mfrom: (1000.720.21 OTA9-landing-2015-12-11)
  • Revision ID: ci-train-bot@canonical.com-20151216100143-hhgmd51xeu09z0np
OTA9-landing-2015-12-11
Approved by: Zoltan Balogh

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 EASmilodon : public QObject
 
27
{
 
28
    Q_OBJECT
 
29
 
 
30
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
 
31
 
 
32
public:
 
33
    explicit EASmilodon(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