| 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 mcontrolpanel. 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 MCPAPPLETIF_H 00019 #define MCPAPPLETIF_H 00020 00021 #include <QtPlugin> 00022 00023 class McpWidget; 00024 class MAction; 00025 class McpBrief; 00026 00033 class McpAppletIf 00034 { 00035 public: 00036 virtual ~McpAppletIf() {} 00042 virtual void init () = 0; 00043 00054 virtual McpWidget *constructWidget (int widgetId) = 0; 00055 00064 # ifdef MCP_DISABLE_DEPRECATION_WARNING 00065 virtual QString title () const = 0; 00066 # else 00067 virtual QString Q_DECL_DEPRECATED title () const = 0; 00068 # endif 00069 00074 virtual QVector <MAction *> viewMenuItems () = 0; 00075 00083 virtual McpBrief *constructBrief (int partId = 0) = 0; 00084 00090 virtual int partID (const QString& partStr) { Q_UNUSED(partStr); return 0; } 00091 00097 virtual int interfaceVersion() { return 4; } 00098 }; 00099 00100 Q_DECLARE_INTERFACE (McpAppletIf, "com.nokia.m.core.McpAppletIf/1.0") 00101 00102 #endif 00103
| Copyright © 2009 Nokia Corporation | Generated on Thu Nov 4 2010 18:21:33 Doxygen 1.7.1 |
DirectUI |