theshell/app.h

46 lines
716 B
C
Raw Normal View History

2016-03-17 19:46:40 +11:00
#ifndef APP_H
#define APP_H
#include <QObject>
#include <QIcon>
2016-07-18 16:57:59 +10:00
class App
2016-03-17 19:46:40 +11:00
{
2016-07-18 16:57:59 +10:00
2016-03-17 19:46:40 +11:00
public:
2016-07-18 16:57:59 +10:00
explicit App();
2016-03-17 19:46:40 +11:00
2017-05-11 23:20:50 +10:00
QString name() const;
2016-03-17 19:46:40 +11:00
void setName(QString name);
2017-05-11 23:20:50 +10:00
QIcon icon() const;
2016-03-17 19:46:40 +11:00
void setIcon(QIcon icon);
2017-05-11 23:20:50 +10:00
QString command() const;
2016-03-17 19:46:40 +11:00
void setCommand(QString command);
2017-05-11 23:20:50 +10:00
QString description() const;
2016-03-17 19:46:40 +11:00
void setDescription(QString desc);
2016-09-08 21:48:11 +10:00
2017-05-11 23:20:50 +10:00
bool isPinned() const;
2016-09-08 21:48:11 +10:00
void setPinned(bool pinned);
2017-05-11 23:20:50 +10:00
QString desktopEntry() const;
2016-09-08 21:48:11 +10:00
void setDesktopEntry(QString entry);
2016-03-17 19:46:40 +11:00
signals:
public slots:
private:
QString appname;
QIcon appicon;
QString appcommand;
QString appdesc = "";
2016-09-08 21:48:11 +10:00
QString appfile = "";
bool pin = false;
2016-03-17 19:46:40 +11:00
};
2016-09-08 21:48:11 +10:00
Q_DECLARE_METATYPE(App)
2016-03-17 19:46:40 +11:00
#endif // APP_H