Home · All Namespaces · All Classes |
00001 /*************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of meegotouchhome. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 00020 00021 #ifndef MDESKTOPBACKGROUNDEXTENSIONINTERFACE_H_ 00022 #define MDESKTOPBACKGROUNDEXTENSIONINTERFACE_H_ 00023 00024 #include <QObject> 00025 #include <QRectF> 00026 #include <MNamespace> 00027 #include <mapplicationextensioninterface.h> 00028 00029 class QPainter; 00030 00034 class MDesktopInterface 00035 { 00036 public: 00040 virtual void update() = 0; 00041 00045 virtual M::OrientationAngle orientationAngle() = 0; 00046 }; 00047 00052 class MDesktopBackgroundExtensionInterface : public MApplicationExtensionInterface 00053 { 00054 Q_INTERFACES(MApplicationExtensionInterface) 00055 00056 public: 00060 virtual ~MDesktopBackgroundExtensionInterface() {} 00061 00067 virtual void setDesktopInterface(MDesktopInterface &desktopInterface) = 0; 00068 00074 virtual void setDefocused(bool defocused) = 0; 00075 00082 virtual void drawBackground(QPainter *painter, const QRectF &boundingRect) const = 0; 00083 }; 00084 00085 Q_DECLARE_INTERFACE(MDesktopBackgroundExtensionInterface, "com.meego.core.MDesktopBackgroundExtensionInterface/1.0") 00086 00087 #endif /* MDESKTOPBACKGROUNDEXTENSIONINTERFACE_H_ */
Copyright © 2011 Nokia Corporation | Generated on Thu Jul 7 2011 22:14:50 Doxygen 1.7.1 |
MeeGo Touch |