![]() |
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 systemui. 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 #ifndef CONTEXTFRAMEWORKCONTEXT_H 00021 #define CONTEXTFRAMEWORKCONTEXT_H 00022 00023 #include "applicationcontext.h" 00024 00025 #ifdef HAVE_CONTEXTSUBSCRIBER 00026 #include <contextproperty.h> 00027 #endif 00028 00033 class ContextFrameworkContext : public ApplicationContext 00034 { 00035 public: 00039 ContextItem *createContextItem(const QString &key); 00040 }; 00041 00045 class ContextFrameworkItem : public ContextItem 00046 { 00047 Q_OBJECT 00048 00049 public: 00056 ContextFrameworkItem(const QString &key); 00057 00061 QVariant value() const; 00062 00066 void subscribe() const; 00067 00071 void unsubscribe() const; 00072 00073 private: 00074 #ifdef HAVE_CONTEXTSUBSCRIBER 00075 00076 ContextProperty property; 00077 00079 mutable bool subscribed; 00080 #endif 00081 }; 00082 00083 #endif // CONTEXTFRAMEWORKCONTEXT_H
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |