File indexing completed on 2024-04-21 04:03:13

0001 //
0002 // C++ Interface: testplugin
0003 //
0004 // Description: Testing Plugin.
0005 //
0006 /*
0007 Copyright 2007-2011 Tomas Mecir <kmuddy@kmuddy.com>
0008 
0009 This program is free software; you can redistribute it and/or
0010 modify it under the terms of the GNU General Public License as
0011 published by the Free Software Foundation; either version 2 of 
0012 the License, or (at your option) any later version.
0013 
0014 This program is distributed in the hope that it will be useful,
0015 but WITHOUT ANY WARRANTY; without even the implied warranty of
0016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017 GNU General Public License for more details.
0018 
0019 You should have received a copy of the GNU General Public License
0020 along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021 */
0022 
0023 #ifndef TESTPLUGIN_H
0024 #define TESTPLUGIN_H
0025 
0026 #include <cplugin.h>
0027 #include <QVariantList>
0028 
0029 class cTestPlugin : public cPlugin
0030 {
0031 public:
0032   cTestPlugin (QObject *, const QVariantList &);
0033   virtual ~cTestPlugin ();
0034 
0035   virtual void sessionAdd (int sess, bool fresh = true);
0036   virtual void sessionRemove (int sess, bool closed = true);
0037   virtual void sessionSwitch (int sess);
0038   virtual void connected (int sess);
0039   virtual void disconnected (int sess);
0040   virtual void rawData (int sess, char * data);
0041   virtual void decompressedData (int sess, char * data);
0042   virtual void processInput (int sess, int phase, cTextChunk * chunk,
0043       bool gagged);
0044   virtual void processPrompt (int sess, cTextChunk * chunk);
0045   virtual void processCommand (int sess, QString & command, bool & dontSend);
0046 };
0047 
0048 
0049 #endif // TEST_PLUGIN_H
0050