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 ai sw=4 ts=4 sts=4: tw=80 cino="(0,W2s,i2s,t0,l1,:0" */ 00020 #ifndef DCPCONTENTBUTTON_H 00021 #define DCPCONTENTBUTTON_H 00022 00023 #include <MButton> 00024 00025 class DcpAppletObject; 00026 class DcpAppletMetadata; 00027 class QShowEvent; 00028 class QHideEvent; 00029 class DcpContentButtonPrivate; 00030 00046 class DcpContentButton: public MButton 00047 { 00048 Q_OBJECT 00049 00051 Q_PROPERTY (QString mattiID READ mattiID WRITE setMattiID) 00052 Q_PROPERTY (QString TDriverID READ TDriverID WRITE setTDriverID) 00054 00055 public: 00061 DcpContentButton ( 00062 DcpAppletObject *applet = 0, 00063 QGraphicsItem *parent = 0); 00064 00065 ~DcpContentButton (); 00066 00072 void setApplet (DcpAppletObject *applet); 00073 00074 void setMetadata (DcpAppletMetadata *metadata); 00075 DcpAppletMetadata *metadata(); 00076 void loadApplet(); 00077 00079 DcpAppletObject *applet () const; 00080 00082 void setMattiID (const QString& mattid); 00083 QString mattiID () const; 00084 void setTDriverID (const QString& tdriverid); 00085 QString TDriverID () const; 00087 00088 protected slots: 00093 void updateContents (); 00094 void onClicked (); 00095 00096 protected: 00097 virtual void retranslateUi (); 00098 virtual void showEvent (QShowEvent *event); 00099 virtual void hideEvent (QHideEvent *event); 00100 00102 void updateText (); 00103 private: 00104 DcpContentButtonPrivate* const d_ptr; 00105 00106 friend class Ut_DcpContentButton; 00107 }; 00108 00109 00110 #endif 00111
Copyright © 2009 Nokia Corporation | Generated on Tue Jul 5 2011 15:01:31 Doxygen 1.7.1 |
Meego control panel |