Home · All Namespaces · All Classes · Main Classes |
00001 /*************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Karoliina T. Salminen <karoliina.t.salminen@nokia.com> 00006 ** 00007 ** This file is part of duicontrolpanel. 00008 ** 00009 ** 00010 ** This library is free software; you can redistribute it and/or 00011 ** modify it under the terms of the GNU Lesser General Public 00012 ** License version 2.1 as published by the Free Software Foundation 00013 ** and appearing in the file LICENSE.LGPL included in the packaging 00014 ** of this file. 00015 ** 00016 ****************************************************************************/ 00017 00018 /* -*- Mode: C; indent-tabs-mode: s; c-basic-offset: 4; tab-width: 4 -*- */ 00019 /* vim:set et sw=4 ts=4 sts=4: */ 00020 #ifndef DCPAPPLETPLUGIN_H 00021 #define DCPAPPLETPLUGIN_H 00022 00023 #include <QObject> 00024 #include <QString> 00025 class DcpAppletMetadata; 00026 class DcpAppletIf; 00027 class DcpAppletPluginPrivate; 00028 class QTime; 00029 00034 class DcpAppletPlugin : public QObject 00035 { 00036 Q_OBJECT 00037 00038 public: 00039 explicit DcpAppletPlugin(DcpAppletMetadata *metadata); 00040 DcpAppletPlugin(DcpAppletMetadata *metadata, bool tryLoad); 00041 virtual ~DcpAppletPlugin(); 00042 00043 DcpAppletIf *applet() const; 00044 bool isAppletLoaded() const; 00045 DcpAppletMetadata *metadata() const; 00046 const QString errorMsg () const; 00047 int interfaceVersion() const; 00048 00049 static void setDefaultLoadHints (int hints); 00050 00051 protected: 00052 virtual void load (); 00053 virtual bool loadPluginFile (const QString &binaryPath); 00054 virtual bool loadDslFile (const QString &dslPath); 00055 00056 private: 00057 DcpAppletPluginPrivate *const d_ptr; 00058 Q_DISABLE_COPY(DcpAppletPlugin); 00059 friend class Ut_DcpAppletPlugin; 00060 00061 }; 00062 00063 #endif 00064
Copyright © 2009 Nokia Corporation | Generated on Tue Jul 5 2011 15:01:31 Doxygen 1.7.1 |
Meego control panel |