wvuing/wvuipresence/inc/TCAWrappers.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Presence-list handling interface for clients
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TCAWRAPPERS_H
       
    20 #define TCAWRAPPERS_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <bamdesca.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MPEngContactList2;
       
    27 class CPEngContactListStore2;
       
    28 class CPEngTrackedPresenceID2;
       
    29 class CPEngTrackedPresenceIDs2;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 class TContactListsWrapper : public MDesCArray
       
    34     {
       
    35     public:
       
    36         IMPORT_C TContactListsWrapper();
       
    37 
       
    38         IMPORT_C TContactListsWrapper( const MDesCArray& aCntLists );
       
    39 
       
    40     public: // from MDesC16Array
       
    41         IMPORT_C TInt MdcaCount() const;
       
    42 
       
    43         IMPORT_C TPtrC16 MdcaPoint( TInt aIndex ) const;
       
    44 
       
    45     private: // data
       
    46         const MDesCArray*           iCntLists;
       
    47         TInt                        iWatcherIndex;
       
    48     };
       
    49 
       
    50 class TOneContactListWrapper : public MDesCArray
       
    51     {
       
    52     public:
       
    53         IMPORT_C TOneContactListWrapper( const MPEngContactList2& aCntList );
       
    54 
       
    55     public: // from MDesC16Array
       
    56         IMPORT_C TInt MdcaCount() const;
       
    57 
       
    58         IMPORT_C TPtrC16 MdcaPoint( TInt aIndex ) const;
       
    59 
       
    60     private: // data
       
    61         const MPEngContactList2&    iList;
       
    62     };
       
    63 
       
    64 
       
    65 class TMultiPecListWrapper : public MDesCArray
       
    66     {
       
    67     public: // New functions
       
    68         IMPORT_C TMultiPecListWrapper();
       
    69 
       
    70         IMPORT_C void InitializeLC( MDesCArray& aLists,
       
    71                                     CPEngContactListStore2& aListStore );
       
    72         IMPORT_C void Close();
       
    73 
       
    74 
       
    75     public: // from MDesC16Array
       
    76         IMPORT_C TInt MdcaCount() const;
       
    77 
       
    78         IMPORT_C TPtrC16 MdcaPoint( TInt aIndex ) const;
       
    79 
       
    80     private: // data
       
    81         RPointerArray<MPEngContactList2>      iLists;
       
    82         RArray<TInt>                          iListCounts;
       
    83         TInt                                  iCount;
       
    84     };
       
    85 
       
    86 class TOneDesWrapper : public MDesCArray
       
    87     {
       
    88     public: // New functions
       
    89         IMPORT_C TOneDesWrapper( const TDesC& aDes );
       
    90 
       
    91     public: // from MDesC16Array
       
    92         IMPORT_C TInt MdcaCount() const;
       
    93 
       
    94         IMPORT_C TPtrC16 MdcaPoint( TInt aIndex ) const;
       
    95 
       
    96     private: // data
       
    97         const TDesC&                        iDes;
       
    98     };
       
    99 
       
   100 
       
   101 NONSHARABLE_CLASS( TTrackedPresenceIds ): public MDesCArray
       
   102     {
       
   103 public:
       
   104     IMPORT_C TTrackedPresenceIds();
       
   105     IMPORT_C void InitializeLC( CPEngTrackedPresenceIDs2& aTrackedIds );
       
   106     IMPORT_C void Close();
       
   107 
       
   108 public: // from MDesC16Array
       
   109     IMPORT_C TInt MdcaCount() const;
       
   110 
       
   111     IMPORT_C TPtrC16 MdcaPoint( TInt aIndex ) const;
       
   112 
       
   113 private:
       
   114     RPointerArray<CPEngTrackedPresenceID2>	iTrackedIds;
       
   115     };
       
   116 
       
   117 
       
   118 #endif      // TCAWRAPPERS_H
       
   119 
       
   120 // End of File
       
   121