diff -r ebe688cedc25 -r 7fdbb852d323 messagingappbase/ncnlist/inc/MNcnNotifier.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingappbase/ncnlist/inc/MNcnNotifier.h Wed Sep 01 12:31:54 2010 +0100 @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Defines class MNcnNotifier. +* +*/ + + + +#ifndef MNCNNOTIFIER_H +#define MNCNNOTIFIER_H + +// INCLUDES +#include + +// CLASS DECLARATION + +/** + * Ncn UI interface. + */ +class MNcnNotifier + { + public: // Enumerations + + /** + * Ncn notification types. + */ + enum TNcnNotificationType + { + ENcnMessagesNotification = 0, // Message notification + ENcnAudioMessagesNotification = 1, // Audio message notification + ENcnClass0MessageNotification = 2, // Class0-Message notification + ENcnEmailNotification = 3, // EMail notification + ENcnVoiceMailNotification = 4, // Voice mail notification + ENcnVoiceMailOnLine1Notification = 5, // Voice mail l1 notification + ENcnVoiceMailOnLine2Notification = 6, // Voice mail l2 notification + ENcnMissedCallsNotification = 7, // Missed calls notification + ENcnInstantMessagesNotification = 8, // Instant messages notification + ENcnNoNotification = 9 // No notification + }; + + public: // New methods + + /** + * Sets the notification amount of the specified type. + * @param aNotificationType The notification type. + * @param aAmount Notification amount. + * @param aIcon Notifies with icon + * @param aTone Notifies with tone + * @param aNote Notifies with note + */ + virtual void SetNotification( + TNcnNotificationType aNotificationType, + TUint aAmount, + TBool aIcon = ETrue, + TBool aTone = ETrue, + TBool aNote = ETrue ) = 0; + + /** + * Returns the notification amount for specified type. + * @param aNotificationType The notification type. + * @return The notification amount. + */ + virtual TUint NotificationAmount( + TNcnNotificationType aNotificationType ) = 0; + + }; + +#endif // MNCNNOTIFIER_H + +// End of File