wvuing/wvuiprocess/Inc/CCAOpenChatsPC.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Openchats
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCAOPENCHATSPC_H
       
    21 #define CCAOPENCHATSPC_H
       
    22 
       
    23 //includes
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 
       
    27 #include "chatdefinitions.h"
       
    28 #include "MCAOpenChatsPC.h"
       
    29 
       
    30 //forward declarations
       
    31 class MCAArrayItemPC;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36  *  CCAOpenChatsPC
       
    37  *
       
    38  *  @lib wvuiprocessng.dll
       
    39  *  @since 3.2
       
    40  */
       
    41 class CCAOpenChatsPC : public CBase,
       
    42             public MCAOpenChatsPC
       
    43 
       
    44     {
       
    45 
       
    46     public: // From MCAOpenChatsPC
       
    47 
       
    48 
       
    49         /**
       
    50          * @see MCAOpenChatsPC
       
    51          */
       
    52         const TPtrC GetIdentification( TInt aIndex );
       
    53 
       
    54 
       
    55         /**
       
    56          * @see MCAOpenChatsPC
       
    57          */
       
    58         const TPtrC GetId( TInt aIndex );
       
    59 
       
    60         /**
       
    61          * @see MCAOpenChatsPC
       
    62          */
       
    63         TEnumsPC::TItem GetType( TInt aIndex );
       
    64 
       
    65         /**
       
    66          * @see MCAOpenChatsPC
       
    67          */
       
    68         TInt Count() const;
       
    69 
       
    70         /**
       
    71          * @see MCAOpenChatsPC
       
    72          */
       
    73         void SetActiveItem( const TInt aIndex );
       
    74 
       
    75         /**
       
    76          * @see MCAOpenChatsPC
       
    77          */
       
    78         void GetActiveItem( TDesC*& aId, TEnumsPC::TItem& aType );
       
    79 
       
    80 
       
    81         /**
       
    82          * @see MCAOpenChatsPC
       
    83          */
       
    84         void SetInvitationIdentification( TDesC* aIdentification );
       
    85 
       
    86 
       
    87 
       
    88     public:
       
    89 
       
    90         /**
       
    91         * NewL - returns the instance to CCAOpenChatsPC
       
    92         */
       
    93         static CCAOpenChatsPC* NewL( const RPointerArray<MCAArrayItemPC>&
       
    94                                      aOpenChatsArray );
       
    95 
       
    96 
       
    97         /**
       
    98         * Destructor
       
    99         */
       
   100         virtual ~CCAOpenChatsPC();
       
   101 
       
   102 
       
   103     private: //Two phased ctor
       
   104 
       
   105         /**
       
   106         *CCAOpenChatsPC - ctor
       
   107         */
       
   108         CCAOpenChatsPC( const RPointerArray<MCAArrayItemPC>&
       
   109                         aOpenChatsArray );
       
   110 
       
   111 
       
   112 
       
   113         /**
       
   114         *ConstructL
       
   115         */
       
   116         void ConstructL( );
       
   117 
       
   118     private: //Data
       
   119 
       
   120 
       
   121         //Doesn't own
       
   122         const RPointerArray<MCAArrayItemPC>& iOpenChatsArray;
       
   123 
       
   124         //holds the index of the active tab item
       
   125         TInt iActiveItem;
       
   126 
       
   127         //not owned
       
   128         TDesC* iInvitationIdentification;
       
   129 
       
   130         HBufC* iActiveItemId;
       
   131 
       
   132         TEnumsPC::TItem iActiveItemType;
       
   133 
       
   134     };
       
   135 
       
   136 #endif      // CCAOPENCHATSPC_H
       
   137 
       
   138 // End of File