imservices/imfeatureplugin/srcimdatamodel/imconversation/conversationsubscriptionitem.h
changeset 0 e6b17d312c8b
child 21 cfd5c2994f10
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2007 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:  IM Service Connection IM conversation subscription implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPSCCONVERSATIONSUBSCRIPTIONITEM_H
       
    19 #define CPSCCONVERSATIONSUBSCRIPTIONITEM_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include "ximpsubscriptionitem.h"
       
    23 #include "imtypehelpers.h"
       
    24 #include "ximpsubscriptionitembase.h"
       
    25 
       
    26 class MXIMPIMItemParent;
       
    27 class MXIMPPscContext;
       
    28 class CXIMPPscContext;
       
    29 class CDesC16Array;
       
    30 class CImConversationInfoImp;
       
    31 class MImConversationInfo;
       
    32 /**
       
    33  * PSC group list subscription implementation
       
    34  *
       
    35  * @since S60 v3.2
       
    36  */
       
    37 class CConversationSubscriptionItem : public CXIMPSubscriptionItemBase
       
    38     {
       
    39 
       
    40 public: // Construction and destruction
       
    41 
       
    42     /**
       
    43      * Construction
       
    44      * @param aParent. Parent has to be informed when this object is deleted by RemoveMe method.
       
    45      */
       
    46     static CConversationSubscriptionItem* NewLC( MXIMPItemParentBase& aParent );
       
    47 
       
    48     /**
       
    49      * Destruction
       
    50      * - Remember to inform parent about delete.
       
    51      */
       
    52     IMPORT_C virtual ~CConversationSubscriptionItem();
       
    53 
       
    54 private: // Construction and destruction
       
    55 
       
    56     /**
       
    57      * Construction
       
    58      * @param aParent. Parent has to be informed when this object is deleted by RemoveMe method.
       
    59      */
       
    60     CConversationSubscriptionItem( MXIMPItemParentBase& aParent );
       
    61 
       
    62     /**
       
    63      * Construction
       
    64      */
       
    65     void ConstructL();
       
    66 
       
    67 public: // New methods
       
    68 
       
    69     /**
       
    70      * Resolves deltas from new list and replaces old current.
       
    71      * Ownership is transferred!
       
    72      * @param aList New blocklist.
       
    73      */
       
    74     void  SetConversationInfoL(CImConversationInfoImp* aImMessage);
       
    75 public: // From MXIMPSubscriptionItem
       
    76 
       
    77     /**
       
    78      * @see MXIMPSubscriptionItem
       
    79      */
       
    80     void SynthesiseSubscriptionEventToL( MXIMPPscContext* aContext, TBool aForceEvent );
       
    81 private: // From CXIMPSubscriptionItemBase
       
    82 
       
    83     /**
       
    84      * @see CXIMPSubscriptionItemBase
       
    85      */
       
    86     void CleanExpired();
       
    87 
       
    88 private : 
       
    89      /**
       
    90      *  conversation info :Not owned
       
    91      */
       
    92 	
       
    93     CImConversationInfoImp* iConvinfo;
       
    94     
       
    95     //MXIMPItemParentBase& iParent;
       
    96 
       
    97     };
       
    98 
       
    99 
       
   100 /* ======================================================================== */
       
   101 
       
   102 
       
   103 
       
   104 #endif // CPSCCONVERSATIONSUBSCRIPTIONITEM_H