Blokkal
an Extendable KDE Blogging Client
SourceForge.net Logo

blokkalplugin.h

00001 /***************************************************************************
00002  *   Copyright (C) 2006 - 2008 by Martin Mueller                           *
00003  *   orvio@orvio.de                                                        *
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 of the License, or     *
00008  *   (at your option) 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                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef BLOKKALBLOKKALPLUGIN_H
00021 #define BLOKKALBLOKKALPLUGIN_H
00022 
00023 #include "blokkal_export.h"
00024 
00025 #include <kxmlguiclient.h>
00026 #include <QtCore/QObject>
00027 
00028 class KPluginInfo;
00029 class KIcon;
00030 namespace Blokkal {
00135 class BLOKKAL_EXPORT Plugin : public QObject, public KXMLGUIClient
00136 {
00137 Q_OBJECT
00138 public:
00144         Plugin( const  KComponentData & instance, QObject * parent = 0 );
00145 
00149    virtual ~Plugin( void );
00150 
00155         QString pluginName( void ) const;
00156 
00161         KPluginInfo pluginInfo( void ) const;
00162 
00167         KIcon icon( void ) const;
00168 
00173         QString visibleName( void ) const;
00174 
00175 public Q_SLOTS:
00181         virtual void prepareToUnload( void );
00182 
00183 Q_SIGNALS:
00189         void readyToUnload( Blokkal::Plugin * plugin );
00190 };
00191 
00192 }
00193 
00194 #endif