wvuing/wvuiprocess/Inc/CCAIMUtilsPC.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     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: IM Utils Class on Process Component Side
       
    15 *
       
    16 */
       
    17 #ifndef CCAIMUTILSPC_H
       
    18 #define CCAIMUTILSPC_H
       
    19 
       
    20 #include    <badesca.h>
       
    21 
       
    22 class CAPresenceManager;
       
    23 class MCAPresence;
       
    24 class MCAContactLists;
       
    25 
       
    26 class CCAIMUtilsPC : public CBase
       
    27 
       
    28     {
       
    29 
       
    30     public:
       
    31 
       
    32         //symbian 2 phase construction
       
    33         static CCAIMUtilsPC* NewL();
       
    34 
       
    35         void ConstructL();
       
    36 
       
    37         //if there is a contact list returns true else returns false
       
    38         IMPORT_C TBool PresenceContactPCL();
       
    39 
       
    40         //check whether the ID is already present.
       
    41         //if yes returns KErrAlreadyExists else returns KErrNone
       
    42         IMPORT_C TInt IdsAlreadyExistsOrNotL( TPtr aNamePtr );
       
    43 
       
    44         //It actually creates the contact list
       
    45         IMPORT_C TInt CreateContactListPCL( const TDesC& aname );
       
    46 
       
    47         IMPORT_C TBool IsThereAnyContactsL();
       
    48 
       
    49         IMPORT_C MCAContactLists* GetContactList();
       
    50 
       
    51         ~CCAIMUtilsPC();
       
    52 
       
    53     private:
       
    54 
       
    55         //private constructor
       
    56         CCAIMUtilsPC();
       
    57 
       
    58         //data
       
    59         MCAPresence* iPresence;
       
    60         MCAContactLists* iContactList;
       
    61 
       
    62     };
       
    63 
       
    64 
       
    65 #endif // CCAIMUTILSPC_H