File indexing completed on 2024-12-01 09:59:57
0001 // 0002 // C++ Interface: KMuddyMapper 0003 // 0004 // Description: Plugin interface file for the KMuddy mapper. 0005 // 0006 // 0007 // Author: Tomas Mecir, (C) 2007 0008 // 0009 // Copyright: See COPYING file that comes with this distribution 0010 // 0011 // 0012 #ifndef KMUDDYMAPPER_H 0013 #define KMUDDYMAPPER_H 0014 0015 #include "cplugin.h" 0016 0017 #include <QVariantList> 0018 0019 struct KMuddyMapperPrivate; 0020 0021 class KMuddyMapper : public cPlugin 0022 { 0023 Q_OBJECT 0024 public: 0025 KMuddyMapper (QObject *, const QVariantList &); 0026 ~KMuddyMapper () override; 0027 0028 void sessionAdd (int sess, bool fresh = true) override; 0029 void sessionRemove (int sess, bool closed = true) override; 0030 void sessionSwitch (int sess) override; 0031 void connected (int sess) override; 0032 void disconnected (int sess) override; 0033 0034 virtual void load (int sess); 0035 void save (int sess) override; 0036 0037 void processInput (int sess, int phase, cTextChunk * chunk, 0038 bool gagged) override; 0039 void processCommand (int sess, QString & command, bool &dontSend) override; 0040 0041 protected slots: 0042 void showMapper (bool b); 0043 void mapperClosed (); 0044 private: 0045 KMuddyMapperPrivate *d; 0046 }; 0047 0048 0049 #endif // KMUDDYMAPPER_H 0050