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 00021 #ifndef DCPAPPLETOBJECT_H 00022 #define DCPAPPLETOBJECT_H 00023 00024 #include "dcpappletplugin.h" 00025 #include <QString> 00026 #include <QVariant> 00027 class DcpAppletIf; 00028 class DcpAppletMetadata; 00029 class DcpBrief; 00030 class DcpWidget; 00031 00032 class DcpAppletObjectPrivate; 00033 00043 class DcpAppletObject : public DcpAppletPlugin 00044 { 00045 Q_OBJECT 00046 public: 00047 DcpAppletObject(DcpAppletMetadata *metadata); 00048 DcpAppletObject(DcpAppletMetadata *metadata, bool tryLoad); 00049 virtual ~DcpAppletObject(); 00050 00051 QString toggleIconId () const; 00052 00053 int widgetTypeID () const; 00054 00055 Qt::Alignment align () const; 00056 bool toggle () const; 00057 00058 QString text1 () const; 00059 QString text2 () const; 00060 00061 QString iconName() const; 00062 QString imageName() const; 00063 int getMainWidgetId () const; 00064 00065 QString helpId () const; 00066 00067 DcpBrief* brief() const; 00068 QVariant value() const; 00069 int minValue() const; 00070 int maxValue() const; 00071 int sliderSteps() const; 00072 00073 int briefVersion() const; 00074 00075 signals: 00076 void briefChanged (); 00077 void activate (int pageId); 00078 void requestPluginActivation (const QString& pluginName); 00079 00080 public slots: 00081 void slotClicked (); 00082 void setToggle (bool checked); 00083 bool activatePluginByName (const QString &name) const; 00084 void activateSlot(int widgetId = -1); 00085 void setValue(const QVariant& value); 00086 00087 protected: 00088 void setBrief (DcpBrief* brief); 00089 00090 DcpAppletObjectPrivate *const d_ptr; 00091 Q_DISABLE_COPY (DcpAppletObject); 00092 }; 00093 00094 #endif 00095
Copyright © 2009 Nokia Corporation | Generated on Tue Jul 5 2011 15:01:31 Doxygen 1.7.1 |
Meego control panel |