21 #ifndef ACTIVITYINFO_H 
   22 #define ACTIVITYINFO_H 
   46     Q_PROPERTY(QString 
name READ 
name WRITE setName NOTIFY nameChanged)
 
   56     Q_PROPERTY(QString 
section READ 
section WRITE setSection NOTIFY sectionChanged)
 
   70     Q_PROPERTY(QString 
icon READ 
icon WRITE setIcon NOTIFY iconChanged)
 
   75     Q_PROPERTY(QString 
author READ 
author WRITE setAuthor NOTIFY authorChanged)
 
   80     Q_PROPERTY(
bool demo READ 
demo WRITE setDemo NOTIFY demoChanged)
 
   85     Q_PROPERTY(QString 
title READ 
title WRITE setTitle NOTIFY titleChanged)
 
   95     Q_PROPERTY(QString 
goal READ 
goal WRITE setGoal NOTIFY goalChanged)
 
  105     Q_PROPERTY(QString 
manual READ 
manual WRITE setManual NOTIFY manualChanged)
 
  110     Q_PROPERTY(QString 
credit READ 
credit WRITE setCredit NOTIFY creditChanged)
 
  112     Q_PROPERTY(
bool favorite READ favorite WRITE setFavorite NOTIFY favoriteChanged)
 
  123     QString 
name() const;
 
  124     void setName(const QString &);
 
  126     void setSection(const QString &);
 
  128     void setDifficulty(const 
int &);
 
  129     QString 
icon() const;
 
  130     void setIcon(const QString &);
 
  132     void setAuthor(const QString &);
 
  134     void setDemo(const 
bool &);
 
  135     QString 
title() const;
 
  136     void setTitle(const QString &);
 
  138     void setDescription(const QString &);
 
  139     QString 
goal() const;
 
  140     void setGoal(const QString &);
 
  142     void setPrerequisite(const QString &);
 
  144     void setManual(const QString &);
 
  146     void setCredit(const QString &);
 
  147     bool favorite() const;
 
  148     void setFavorite(const 
bool);
 
  150     void setEnabled(const 
bool);
 
  152     QStringList getSectionPath();
 
  157     void sectionChanged();
 
  158     void difficultyChanged();
 
  160     void authorChanged();
 
  163     void descriptionChanged();
 
  165     void prerequisiteChanged();
 
  166     void manualChanged();
 
  167     void creditChanged();
 
  168     void favoriteChanged();
 
  169     void enabledChanged();
 
  181     QString m_description;
 
  183     QString m_prerequisite;
 
  190 #endif // ACTIVITYINFO_H 
A QML component holding meta information about an activity. 
 
QString icon
Relative path to the icon of the activity. 
 
QString title
Title of the activity. 
 
bool demo
Whether the activity is part of the demo version of GCompris. 
 
QString section
Section(s) this activity belongs to. 
 
QString credit
Credits to third parties. 
 
QString goal
Goal that this activity wants to achieve. 
 
QString name
Name of the main activity QML file. 
 
QString description
Description of the activity. 
 
int difficulty
Difficulty of the activity. 
 
bool enabled
This activity is enabled. 
 
QString author
Author of the activity. 
 
QString prerequisite
Prerequisite for using this activity. 
 
QString manual
Manual describing the activity's usage.