Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / runtime / knotify / knotifyconfig.h
blob62ed391dad282b2e147efca07e349afa4b122da6
1 /*
2 Copyright (C) 2005-2006 by Olivier Goffart <ogoffart at kde.org>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef KNOTIFYCONFIG_H
22 #define KNOTIFYCONFIG_H
24 #include <ksharedconfig.h>
26 #include <QPair>
27 #include <QPixmap>
28 #include <QObject> //for Wid
30 typedef QList< QPair<QString,QString> > ContextList;
32 /**
33 * Represent the config for an event
34 @author Olivier Goffart <ogoffart@kde.org>
36 class KNotifyConfig
38 public:
39 KNotifyConfig(const QString &appname, const ContextList &_contexts , const QString &_eventid);
40 ~KNotifyConfig();
42 QString readEntry(const QString& entry , bool path=false);
44 QString text;
45 QPixmap pix;
46 WId winId;
47 QStringList actions;
48 QString appname;
50 KSharedConfig::Ptr eventsfile,configfile;
51 ContextList contexts;
52 QString eventid;
55 #endif