![]() |
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 DISKSPACENOTIFIER_H_ 00021 #define DISKSPACENOTIFIER_H_ 00022 00023 #include <QSet> 00024 #include <QMap> 00025 00026 class MNotification; 00027 00031 class DiskSpaceNotifier : public QObject 00032 { 00033 Q_OBJECT 00034 00035 public: 00039 DiskSpaceNotifier(QObject *parent = NULL); 00040 00044 virtual ~DiskSpaceNotifier(); 00045 00046 private slots: 00053 void handleDiskSpaceChange(const QString &path, int percentage); 00054 00055 private: 00057 QMap<QString, QPair<bool, bool> > notificationsSentForPath; 00058 00060 MNotification *notification; 00061 00062 #ifdef UNIT_TEST 00063 friend class Ut_DiskSpaceNotifier; 00064 #endif 00065 }; 00066 00067 #endif /* DISKSPACENOTIFIER_H_ */
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |