messagingappbase/ncnlist/inc/MNcnNotifier.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Defines class MNcnNotifier.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MNCNNOTIFIER_H
       
    21 #define MNCNNOTIFIER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  * Ncn UI interface.
       
    30  */
       
    31 class MNcnNotifier
       
    32     {
       
    33     public: // Enumerations
       
    34    
       
    35         /**
       
    36          * Ncn notification types.
       
    37          */
       
    38         enum TNcnNotificationType
       
    39             {
       
    40             ENcnMessagesNotification = 0,           // Message notification            
       
    41             ENcnAudioMessagesNotification = 1,		// Audio message notification
       
    42             ENcnClass0MessageNotification = 2,      // Class0-Message notification
       
    43             ENcnEmailNotification = 3,              // EMail notification
       
    44             ENcnVoiceMailNotification = 4,          // Voice mail notification
       
    45             ENcnVoiceMailOnLine1Notification = 5,   // Voice mail l1 notification
       
    46             ENcnVoiceMailOnLine2Notification = 6,   // Voice mail l2 notification
       
    47             ENcnMissedCallsNotification = 7,        // Missed calls notification
       
    48             ENcnInstantMessagesNotification = 8,    // Instant messages notification
       
    49             ENcnNoNotification = 9                  // No notification          
       
    50             };
       
    51             
       
    52     public: // New methods
       
    53     
       
    54         /**
       
    55          * Sets the notification amount of the specified type.
       
    56          * @param aNotificationType The notification type.
       
    57          * @param aAmount Notification amount.
       
    58   		 * @param aIcon Notifies with icon
       
    59 		 * @param aTone Notifies with tone
       
    60 		 * @param aNote Notifies with note
       
    61          */
       
    62         virtual void SetNotification(
       
    63             TNcnNotificationType aNotificationType,
       
    64             TUint aAmount,
       
    65 			TBool aIcon = ETrue,
       
    66 			TBool aTone = ETrue,
       
    67 			TBool aNote = ETrue ) = 0;
       
    68             
       
    69         /**
       
    70          * Returns the notification amount for specified type.
       
    71          * @param aNotificationType The notification type.
       
    72          * @return The notification amount.
       
    73          */
       
    74         virtual TUint NotificationAmount(
       
    75             TNcnNotificationType aNotificationType ) = 0;
       
    76         
       
    77     };
       
    78     
       
    79 #endif // MNCNNOTIFIER_H
       
    80 
       
    81 // End of File