KNotify
knotifyconfig.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2005-2006 by Olivier Goffart <ogoffart at kde.org> 00003 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2, or (at your option) 00008 any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 00019 */ 00020 00021 #ifndef KNOTIFYCONFIG_H 00022 #define KNOTIFYCONFIG_H 00023 00024 #include <ksharedconfig.h> 00025 00026 #include <QPair> 00027 #include <QPixmap> 00028 #include <QObject> //for Wid 00029 00030 typedef QList< QPair<QString,QString> > ContextList; 00031 00036 class KNotifyConfig 00037 { 00038 public: 00039 KNotifyConfig(const QString &appname, const ContextList &_contexts , const QString &_eventid); 00040 ~KNotifyConfig(); 00041 00050 QString readEntry(const QString& entry , bool path=false); 00051 00055 QString text; 00059 QPixmap pix; 00064 WId winId; 00068 QStringList actions; 00069 00073 QString appname; 00074 00078 KSharedConfig::Ptr eventsfile,configfile; 00079 ContextList contexts; 00080 00084 QString eventid; 00085 00089 static void clearCache(); 00090 }; 00091 00092 #endif