Updated Russian translation
[lxde/liblxqt.git] / lxqtnotification_p.h
CommitLineData
f2cde75a
AM
1/* BEGIN_COMMON_COPYRIGHT_HEADER
2 * (c)LGPL2+
3 *
b9223fe7 4 * LXQt - a lightweight, Qt based, desktop toolset
f2cde75a
AM
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
0e4fbf35
AS
25#ifndef LXQTNOTIFICATION_P_H
26#define LXQTNOTIFICATION_P_H
f2cde75a 27
0e4fbf35 28#include "lxqtnotification.h"
f2cde75a
AM
29#include "notifications_interface.h"
30
f05ba5af 31namespace LXQt
0e4fbf35
AS
32{
33
34class NotificationPrivate : public QObject
f2cde75a
AM
35{
36 Q_OBJECT
37public:
0e4fbf35
AS
38 NotificationPrivate(const QString& summary, Notification* parent);
39 ~NotificationPrivate();
f2cde75a 40
c5fe3700 41 void update();
f2cde75a 42 void close();
c5fe3700 43 void setActions(QStringList actions, int defaultAction);
0e4fbf35 44 const Notification::ServerInfo serverInfo();
f2cde75a
AM
45
46public slots:
c5fe3700 47 void handleAction(uint id, QString key);
f2cde75a
AM
48 void notificationClosed(uint, uint);
49
50private:
51 OrgFreedesktopNotificationsInterface* mInterface;
52 uint mId;
53
c5fe3700
AM
54 QString mSummary;
55 QString mBody;
56 QString mIconName;
57 QStringList mActions;
da24150b 58 QVariantMap mHints;
c5fe3700
AM
59 int mDefaultAction;
60 int mTimeout;
61
0e4fbf35
AS
62 Notification* const q_ptr;
63 Q_DECLARE_PUBLIC(Notification)
f2cde75a
AM
64};
65
f05ba5af 66} // namespace LXQt
0e4fbf35 67#endif // LXQTNOTIFICATION_P_H