testplugin.h

00001 /***************************************************************************
00002  * testplugin.h
00003  * This file is part of the KDE project
00004  * copyright (C)2005 by Sebastian Sauer (mail@dipe.org)
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
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 GNU
00013  * Library General Public License for more details.
00014  * You should have received a copy of the GNU Library General Public License
00015  * along with this program; see the file COPYING.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018  ***************************************************************************/
00019 
00020 #ifndef KROSS_TEST_TESTPLUGIN_H
00021 #define KROSS_TEST_TESTPLUGIN_H
00022 
00023 #include "../api/object.h"
00024 #include "../api/list.h"
00025 #include "../api/class.h"
00026 #include "../api/proxy.h"
00027 #include "../api/module.h"
00028 
00029 #include <qobject.h>
00030 #include <qstring.h>
00031 
00032 class TestPluginObject : public Kross::Api::Class<TestPluginObject>
00033 {
00034     public:
00035         TestPluginObject(const QString& name);
00036         virtual ~TestPluginObject();
00037         virtual const QString getClassName() const;
00038 
00039     private:
00040         uint internalfunc1(uint);
00041 
00042         Kross::Api::Object::Ptr func1(Kross::Api::List::Ptr);
00043         Kross::Api::Object::Ptr func2(Kross::Api::List::Ptr);
00044         Kross::Api::Object::Ptr func3(Kross::Api::List::Ptr);
00045         Kross::Api::Object::Ptr func4(Kross::Api::List::Ptr);
00046         Kross::Api::Object::Ptr func5(Kross::Api::List::Ptr);
00047         Kross::Api::Object::Ptr func6(Kross::Api::List::Ptr);
00048         Kross::Api::Object::Ptr func7(Kross::Api::List::Ptr);
00049         Kross::Api::Object::Ptr func8(Kross::Api::List::Ptr);
00050         Kross::Api::Object::Ptr func9(Kross::Api::List::Ptr);
00051 };
00052 
00053 class TestObject;
00054 
00055 class TestPluginModule : public Kross::Api::Module
00056 {
00057     public:
00058         TestPluginModule(const QString& name);
00059         virtual ~TestPluginModule();
00060         virtual const QString getClassName() const;
00061 
00062         virtual Kross::Api::Object::Ptr get(const QString& /*name*/, void* /*pointer*/ = 0)
00063         {
00064                 return 0;
00065         }
00066     private:
00067         TestObject* m_testobject;
00068 };
00069 
00070 #endif

Generated on Thu Feb 9 17:59:11 2006 for Kross by  doxygen 1.4.6