![]() |
Home · All Namespaces · All Classes |
00001 /* -*- Mode: C; indent-tabs-mode: s; c-basic-offset: 4; tab-width: 4 -*- */ 00002 /* vim:set et ai sw=4 ts=4 sts=4: tw=80 cino="(0,W2s,i2s,t0,l1,:0" */ 00003 /**************************************************************************** 00004 ** 00005 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00006 ** All rights reserved. 00007 ** Contact: Nokia Corporation (directui@nokia.com) 00008 ** 00009 ** This file is part of systemui. 00010 ** 00011 ** If you have questions regarding the use of this file, please contact 00012 ** Nokia at directui@nokia.com. 00013 ** 00014 ** This library is free software; you can redistribute it and/or 00015 ** modify it under the terms of the GNU Lesser General Public 00016 ** License version 2.1 as published by the Free Software Foundation 00017 ** and appearing in the file LICENSE.LGPL included in the packaging 00018 ** of this file. 00019 ** 00020 ****************************************************************************/ 00021 #ifndef UNLOCKMISSEDEVENTS_H 00022 #define UNLOCKMISSEDEVENTS_H 00023 00024 #include <QObject> 00025 class QString; 00026 00027 class UnlockMissedEvents : public QObject 00028 { 00029 Q_OBJECT 00030 00031 public: 00032 // These types of notifications are shown in 00033 // the unlock-screen window 00034 typedef enum 00035 { 00036 NotifyEmail = 0, 00037 NotifySms, 00038 NotifyCall, 00039 NotifyMessage, 00040 NotifyOther, 00041 NotifyLast 00042 } Types; 00043 00044 static UnlockMissedEvents& getInstance (); 00045 // These are used by UnlockNotifications widget 00046 Types getLastType (); 00047 QString getLastSubject (Types atype); 00048 int getCount (Types atype); 00049 // These are used by UnlockNotificationSink 00050 void addNotification (Types type, QString subject); 00051 void clearAll (); 00052 00053 signals: 00054 void updated (); 00055 00056 private: 00057 // This is a singleton class, so these're private 00058 UnlockMissedEvents (); 00059 ~UnlockMissedEvents (); 00060 00061 static UnlockMissedEvents m_instance; 00062 00063 QString lastSubjects[NotifyLast]; 00064 int notificationCounts[NotifyLast]; 00065 Types lastType; 00066 }; 00067 00068 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |