![]() |
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 #include "notificationsink.h" 00021 00022 NotificationSink::NotificationSink() : appEventsEnabled(true) 00023 { 00024 } 00025 00026 void NotificationSink::addGroup(uint groupId, const NotificationParameters ¶meters) 00027 { 00028 Q_UNUSED(groupId) 00029 Q_UNUSED(parameters) 00030 } 00031 00032 void NotificationSink::removeGroup(uint groupId) 00033 { 00034 Q_UNUSED(groupId) 00035 } 00036 00037 bool NotificationSink::applicationEventsEnabled() 00038 { 00039 return appEventsEnabled; 00040 } 00041 00042 void NotificationSink::setApplicationEventsEnabled(bool enabled) 00043 { 00044 appEventsEnabled = enabled; 00045 } 00046 00047 bool NotificationSink::canAddNotification(const Notification ¬ification) 00048 { 00049 return appEventsEnabled || notification.type() == Notification::SystemEvent; 00050 }
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:04:51 2010 Doxygen 1.6.1 |
MeeGo Touch |
