~zsombi/ubuntu-ui-toolkit/platform_menu

« back to all changes in this revision

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

  • 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
#include "tarpan.h"
 
20
 
 
21
/*!
 
22
 * \qmltype EATarpan
 
23
 * \instantiates EATarpan
 
24
 * \inqmlmodule Extinct.Animals 1.0
 
25
 * \ingroup ubuntu-commandline
 
26
 * \brief The Tarpan class specifies the behavior of a Eurasian wild horse.
 
27
 */
 
28
 
 
29
EATarpan::EATarpan(QObject *parent) :
 
30
    QObject(parent)
 
31
{
 
32
}
 
33
 
 
34
/*!
 
35
 * \qmlproperty string EATarpan::name
 
36
 *
 
37
 * Name identifying the wild horse.
 
38
 *
 
39
 */
 
40
QString EATarpan::name() const
 
41
{
 
42
    return m_name;
 
43
}
 
44
 
 
45
void EATarpan::setName(const QString &name)
 
46
{
 
47
    m_name = name;
 
48
    Q_EMIT(nameChanged());
 
49
}
 
50
 
 
51
/*!
 
52
 * \qmlmethod string EATarpan::kick()
 
53
 *
 
54
 * A generous kick, commonly towards someone's groin area.
 
55
 *
 
56
 */
 
57
void EATarpan::kick() const
 
58
{
 
59
}