RazorAutostartEntry => LxQt::AutostartEntry
[lxde/liblxqt.git] / razornotification_p.h
1 /* BEGIN_COMMON_COPYRIGHT_HEADER
2 * (c)LGPL2+
3 *
4 * Razor - a lightweight, Qt based, desktop toolset
5 * http://razor-qt.org
6 *
7 * Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 *
23 * END_COMMON_COPYRIGHT_HEADER */
24
25 #ifndef RAZORNOTIFICATION_P_H
26 #define RAZORNOTIFICATION_P_H
27
28 #include "razornotification.h"
29 #include "notifications_interface.h"
30
31 class RazorNotificationPrivate : public QObject
32 {
33 Q_OBJECT
34 public:
35 RazorNotificationPrivate(const QString& summary, RazorNotification* parent);
36 ~RazorNotificationPrivate();
37
38 void update();
39 void close();
40 void setActions(QStringList actions, int defaultAction);
41 const RazorNotification::ServerInfo serverInfo();
42
43 public slots:
44 void handleAction(uint id, QString key);
45 void notificationClosed(uint, uint);
46
47 private:
48 OrgFreedesktopNotificationsInterface* mInterface;
49 uint mId;
50
51 QString mSummary;
52 QString mBody;
53 QString mIconName;
54 QStringList mActions;
55 QVariantMap mHints;
56 int mDefaultAction;
57 int mTimeout;
58
59 RazorNotification* const q_ptr;
60 Q_DECLARE_PUBLIC(RazorNotification)
61 };
62
63 #endif // RAZORNOTIFICATION_P_H