messagingapp/msgnotifications/msgnotifier/inc/msgnotifier_p.h
changeset 23 238255e8b033
child 25 84d9eb65b26f
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     1 /*
       
     2  * Copyright (c) 2009 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: Listen to conversation server events and parse the 
       
    15  * events. These parsed information passed to notifications and indications.
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef MSGNOTIFIER_PRIVATE_H
       
    20 #define MSGNOTIFIER_PRIVATE_H
       
    21 
       
    22 #include <mcsconversationlistchangeobserver.h>
       
    23 
       
    24 // CLASS DECLARATION
       
    25 class MsgNotifier;
       
    26 class CCSRequestHandler;
       
    27 
       
    28 class MsgNotifierPrivate : public MCsConversationListChangeObserver
       
    29     {
       
    30 
       
    31 public:
       
    32     /**
       
    33      * Constructor
       
    34      */
       
    35     MsgNotifierPrivate(MsgNotifier* msgNotifier);
       
    36 
       
    37     /**
       
    38      * Destructor
       
    39      */
       
    40     ~MsgNotifierPrivate();
       
    41 
       
    42 public:
       
    43     /**  
       
    44      * AddConversationList
       
    45      * This is for handling new conversation event
       
    46      * asynchronously from the server 
       
    47      */
       
    48     void AddConversationList(
       
    49             const CCsClientConversation& aClientConversation);
       
    50 
       
    51     /**  
       
    52      * DeleteConversationList
       
    53      * This is for handling delete conversation event
       
    54      * asynchronously from the server 
       
    55      */
       
    56     void DeleteConversationList(
       
    57             const CCsClientConversation& aClientConversation) ;
       
    58 
       
    59     /**  
       
    60      * ModifyConversationList
       
    61      * This is for handling modify conversation asynchronously
       
    62      * from the server 
       
    63      */
       
    64     void ModifyConversationList(
       
    65             const CCsClientConversation& aClientConversation);
       
    66 
       
    67     /**
       
    68      * RefreshConversationList
       
    69      * This is for handling bulk changes. Message store change etc.
       
    70      */
       
    71     void RefreshConversationList();
       
    72 
       
    73 private:
       
    74     /**
       
    75      * Does all the initializations. 
       
    76      */
       
    77     void initL();
       
    78 
       
    79     /**
       
    80      * Process conversation entry for showing the notification.
       
    81      * @param aClientConversation conversation entry
       
    82      */
       
    83     void processListEntry(const CCsClientConversation& aClientConversation);
       
    84 
       
    85     /**
       
    86      * updateIndications
       
    87      * Activate/Deactivate message indications based on unread message count
       
    88      */
       
    89     void updateIndications();
       
    90 
       
    91 private:
       
    92 
       
    93     /**
       
    94      * Pointer to msgnotifier
       
    95      */
       
    96     MsgNotifier* q_ptr;  
       
    97 
       
    98     /**
       
    99      * Conversation server client 
       
   100      */
       
   101     CCSRequestHandler* mCvServer;
       
   102 
       
   103     };
       
   104 
       
   105 #endif // MSGNOTIFIER_PRIVATE_H
       
   106 
       
   107 //EOF