messagingapp/msgui/appengine/tsrc/testconversationengine/inc/testconversationnotifier.h
changeset 27 e4592d119491
child 48 4f501b74aeb1
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
       
     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:
       
    15  *
       
    16  */
       
    17 #ifndef T_CONVERSATIONNOTIFIER_H_
       
    18 #define T_CONVERSATIONNOTIFIER_H_
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32def.h>
       
    22 #include <e32std.h>
       
    23 
       
    24 //FARWARD DECLARATION
       
    25 class MCsResultsObserver;
       
    26 class MCsConversationListChangeObserver;
       
    27 class CCsConversationChangeObserver;
       
    28 class MCsCachingStatusObserver;
       
    29 class CCsConversationEntry;
       
    30 class CCsClientConversation;
       
    31 class MCsConversationChangeObserver;
       
    32 
       
    33 class TestConversationNotifier {
       
    34 
       
    35 public:
       
    36     TestConversationNotifier();
       
    37     
       
    38     void SetResultNotifier(MCsResultsObserver* aResultsObserver);
       
    39 
       
    40     void RemoveResultNotifier();
       
    41 
       
    42     void SetConversationListNotifier(MCsConversationListChangeObserver* aConversationListChangeObserver);
       
    43     
       
    44     void RemoveConversationListNotifier();
       
    45 
       
    46     void SetConversationChangeNotifier(MCsConversationChangeObserver* aConversationChangeObserver);
       
    47     
       
    48     void RemoveConversationChangeNotifier();
       
    49 
       
    50     void SetCachingStatusNotifier(MCsCachingStatusObserver* aCachingStatusObserver);
       
    51 
       
    52     void RemoveCachingStatusNotifier();
       
    53     
       
    54     void SendListResultUpdate(RPointerArray<CCsConversationEntry>& aConversationEntryList);
       
    55     
       
    56     void UpdateConversationEntryModify(CCsConversationEntry& aConversationEntry);
       
    57     
       
    58     void UpdateConversationEntryAdd(CCsConversationEntry& aConversationEntry);
       
    59     
       
    60     void UpdateConversationEntryDelete(CCsConversationEntry& aConversationEntry);
       
    61     
       
    62     void SendClientListUpdate(RPointerArray<CCsClientConversation>& aConversationClientList);
       
    63     
       
    64     void UpdateConversationClientModify(CCsClientConversation& aConversationClient);
       
    65         
       
    66     void UpdateConversationClientAdd(CCsClientConversation& aConversationClient);
       
    67     
       
    68     void UpdateConversationClientDelete(CCsClientConversation& aConversationClient);
       
    69     
       
    70 private:
       
    71     /**
       
    72      * iResultsObserver
       
    73      * Observer which handles conversation event from server.
       
    74      * Not Own.
       
    75      */
       
    76     MCsResultsObserver* iResultsObserver;
       
    77 
       
    78     /**
       
    79      * iConversationListChangeObserver
       
    80      * Observer which handle conversation list changes.
       
    81      * Not Own.
       
    82      */
       
    83     MCsConversationListChangeObserver* iConversationListChangeObserver;
       
    84 
       
    85     /**
       
    86      * iConversationChangeObserver
       
    87      * Observer which handles conversation changes.
       
    88      * Not Own.
       
    89      */
       
    90     MCsConversationChangeObserver*  iConversationChangeObserver;
       
    91 
       
    92     /**
       
    93      * iCachingChangeObserver
       
    94      * Observers which handle conversation change events from server.
       
    95      * Not Own.
       
    96      */
       
    97     MCsCachingStatusObserver* iCachingStatusObserver;
       
    98 };
       
    99 #endif /* T_CONVERSATIONNOTIFIER_H_ */