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 #ifndef DCPAPPLETIF_H 00019 #define DCPAPPLETIF_H 00020 00021 #include <QtPlugin> 00022 00023 class DcpWidget; 00024 class DcpStylableWidget; 00025 class MAction; 00026 class DcpBrief; 00027 class MSheet; 00028 00035 class DcpAppletIf 00036 { 00037 public: 00038 virtual ~DcpAppletIf() {} 00044 virtual void init () {} 00045 00056 # ifdef DCP_DISABLE_DEPRECATION_WARNING 00057 virtual DcpWidget *constructWidget (int widgetId) { 00058 # else 00059 virtual DcpWidget* Q_DECL_DEPRECATED constructWidget (int widgetId) { 00060 # endif 00061 Q_UNUSED (widgetId); return 0; 00062 } 00063 00072 # ifdef DCP_DISABLE_DEPRECATION_WARNING 00073 virtual QString title () const { return QString(); } 00074 # else 00075 virtual QString Q_DECL_DEPRECATED title () const { return QString(); } 00076 # endif 00077 00082 virtual QVector <MAction *> viewMenuItems () = 0; 00083 00091 virtual DcpBrief *constructBrief (int partId = 0) { 00092 Q_UNUSED (partId); 00093 return 0; 00094 } 00095 00101 virtual int partID (const QString& partStr) { Q_UNUSED(partStr); return 0; } 00102 00108 virtual int interfaceVersion() { return 9; } 00109 00124 virtual DcpStylableWidget *constructStylableWidget (int widgetId) { 00125 Q_UNUSED (widgetId); 00126 return 0; 00127 } 00128 00129 virtual MSheet *constructSheet (int widgetId) { 00130 Q_UNUSED (widgetId); 00131 return 0; 00132 } 00133 }; 00134 00135 Q_DECLARE_INTERFACE (DcpAppletIf, "com.nokia.m.core.DcpAppletIf/1.0") 00136 00137 #endif 00138
Copyright © 2009 Nokia Corporation | Generated on Tue Jul 5 2011 15:01:31 Doxygen 1.7.1 |
Meego control panel |