Qtopia Home - Classes - Hierachy - Annotated - Functions - Qt Embedded

plugin.h

This is the verbatim text of the plugin.h include file. It is provided only for illustration; the copyright remains with Trolltech.


/**********************************************************************
** Copyright (C) 2000-2002 Trolltech AS.  All rights reserved.
**
** This file is part of the Qtopia Environment.
**
** Licensees holding valid Qtopia Developer license may use this
** file in accordance with the Qtopia Developer License Agreement
** provided with the Software.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
** THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
** PURPOSE.
**
** email sales@trolltech.com for information about Qtopia License
** Agreements.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/

#ifndef __plugininterface_h__
#define __plugininterface_h__

#include <interfaces/pluginbase.h>
#include <qstring.h>
#include <qpixmap.h>
#include <qptrlist.h>
#include "merge.h"
#include <common/action.h>

struct CenterInterface;
class QMainWindow;
class SettingsWidget;

// {97599F3C-76BF-4E1C-9D1D-C522AEF3A398}
#ifndef IID_PalmtopCenterPlugin
#define IID_PalmtopCenterPlugin QUuid( 0x97599f3c, 0x76bf, 0x4e1c, 0x9d, 0x1d, 0xc5, 0x22, 0xae, 0xf3, 0xa3, 0x98)
#endif

struct PluginInterface : public QDPluginBase
{
    virtual void init( CenterInterface* iface, QMainWindow* mainwindow ) = 0;
    virtual void cleanup() = 0;

    enum Section { Applications, Games, Settings, Documents };
    virtual int section() = 0;
    virtual QPixmap icon() = 0;
    virtual QWidget* view( QWidget* parent ) = 0;
    virtual SettingsWidget* settings( QWidget* parent ) = 0;
    virtual QPtrList<Action> actionList() = 0;
    virtual QString uiDescription() = 0;
    virtual QStringList transFileNames() const = 0;

    virtual MergeInterface* mergeInterface() = 0;

    virtual void receivedQCopMessage( const QString &, const QByteArray & ) = 0;
    virtual void connected(int pdaMajorVersion, int pdaMinorVersion, const QString &) = 0;
    virtual void disconnected() = 0;
    virtual void categoriesChanged() = 0;
    virtual void activated(){} // this is optional to implement
};

#endif


Copyright © 2005 Trolltech Trademarks
Qtopia version 2.1.2