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 mhome. 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 EXTRADIRWATCHER_H 00021 #define EXTRADIRWATCHER_H 00022 00023 #include "launcherdatastore.h" 00024 #include <MDataStore> 00025 00027 class ExtraDirWatcher : public LauncherDataStore 00028 { 00029 public: 00030 ExtraDirWatcher(MDataStore *dataStore, const QStringList &directories); 00031 ~ExtraDirWatcher(); 00032 00033 static const QString DESKTOP_ENTRY_KEY_PACKAGE_STATE; 00034 static const QString DESKTOP_ENTRY_KEY_PACKAGE_HAD_ERROR; 00035 static const QString DESKTOP_ENTRY_KEY_PACKAGE_NAME; 00036 static const QString DESKTOP_ENTRY_KEY_PACKAGE_REMOVABLE; 00037 static const QString DESKTOP_ENTRY_GROUP_MEEGO; 00038 00039 protected: 00040 virtual bool isDesktopEntryValid(const MDesktopEntry &entry, const QStringList &acceptedTypes); 00041 }; 00042 00044 class ExtraDirWatcherData : public MDataStore 00045 { 00046 public: 00048 virtual QVariant value (const QString &key) const; 00049 virtual bool setValue (const QString &key, const QVariant &value); 00050 virtual QStringList allKeys () const; 00051 virtual bool contains (const QString &) const; 00052 virtual bool createValue (const QString &, const QVariant &); 00053 virtual void remove (const QString &); 00054 virtual void clear (); 00056 00057 QString key(const QString &value); 00058 00059 private: 00060 QHash<QString, QString> values; 00061 }; 00062 00063 #endif
Copyright © 2011 Nokia Corporation | Generated on Thu Jul 7 2011 22:14:50 Doxygen 1.7.1 |
MeeGo Touch |