snorenotify/src/snorenotify.h

48 lines
1.2 KiB
C
Raw Normal View History

2013-07-07 10:33:14 +02:00
/*
SnoreNotify is a Notification Framework based on Qt
2014-01-10 18:36:33 +01:00
Copyright (C) 2013-2014 Patrick von Reth <vonreth@kde.org>
2013-07-07 10:33:14 +02:00
2013-07-07 12:38:39 +02:00
SnoreNotify is free software: you can redistribute it and/or modify
2013-07-07 10:33:14 +02:00
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
2013-07-07 12:38:39 +02:00
SnoreNotify is distributed in the hope that it will be useful,
2013-07-07 10:33:14 +02:00
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
2013-07-07 12:38:39 +02:00
along with SnoreNotify. If not, see <http://www.gnu.org/licenses/>.
2013-07-07 10:33:14 +02:00
*/
2010-12-31 18:20:31 +01:00
#ifndef SNORENOTIFY_H
#define SNORENOTIFY_H
#include <QtCore>
2011-11-09 23:13:46 +01:00
namespace Snore{
2012-01-30 22:10:32 +01:00
class SnoreCore;
2011-11-09 23:13:46 +01:00
}
2010-12-31 18:20:31 +01:00
class SnoreNotify:public QObject
{
Q_OBJECT
public:
SnoreNotify();
2012-01-27 20:38:47 +01:00
~SnoreNotify();
void load();
void save();
2010-12-31 18:20:31 +01:00
private:
2012-01-27 20:38:47 +01:00
class TrayIcon *m_trayIcon;
2012-01-30 22:10:32 +01:00
Snore::SnoreCore *m_snore;
2012-01-27 20:38:47 +01:00
class QSettings m_settings;
2010-12-31 18:20:31 +01:00
2010-12-31 18:28:51 +01:00
private slots:
2010-12-31 18:20:31 +01:00
void exit();
};
#endif // SNORENOTIFY_H