~artmello/ubuntu-ui-extras/ubuntu-ui-extras-fix_1524973

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Extras/plugin/share/notifyqml.h

  • Committer: CI Train Bot
  • Author(s): Ugo Riboni
  • Date: 2015-02-04 20:33:44 UTC
  • mfrom: (65.1.46 ubuntu-ui-extras-photo-editor)
  • Revision ID: ci-train-bot@canonical.com-20150204203344-pfmu1ckhooy7oaca
Add a photo editor component, partially based on the Gallery photo editor Fixes: #1368787
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2012-2013 Canonical, Ltd.
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU 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 General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 */
16
 
 
17
 
#ifndef NOTIFYQML_H
18
 
#define NOTIFYQML_H
19
 
 
20
 
#include <QObject>
21
 
 
22
 
class Notify : public QObject
23
 
{
24
 
    Q_OBJECT
25
 
    Q_PROPERTY(QString appName READ appName WRITE setAppName NOTIFY appNameChanged)
26
 
 
27
 
public:
28
 
    explicit Notify(QObject *parent = 0);
29
 
    ~Notify();
30
 
    QString appName() const;
31
 
    void setAppName(const QString& appName);
32
 
 
33
 
Q_SIGNALS:
34
 
    void appNameChanged();
35
 
 
36
 
public Q_SLOTS:
37
 
    void notify(const QString& title, const QString& message, const QString& icon = QString());
38
 
};
39
 
 
40
 
#endif // NOTIFYQML_H