presencecache/presencecacheutils/inc/presencecachebuddyidcreatorprivate.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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 
       
    18 #ifndef PRESENCECACHEBUDDYIDCREATORPRIVATE_H
       
    19 #define PRESENCECACHEBUDDYIDCREATORPRIVATE_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class MVPbkContactStore;
       
    24 class CVPbkContactIdConverter;
       
    25 class CVPbkContactManager;
       
    26 
       
    27 /**
       
    28  *
       
    29  */
       
    30 NONSHARABLE_CLASS( CPresenceCacheBuddyIdCreatorPrivate ) : public CBase
       
    31     {
       
    32 public: // constructor and destructor
       
    33     static CPresenceCacheBuddyIdCreatorPrivate* NewL( 
       
    34             CVPbkContactManager* aContactManager );
       
    35 
       
    36     virtual ~CPresenceCacheBuddyIdCreatorPrivate();
       
    37 
       
    38 public: // New functions
       
    39     HBufC* CreateBuddyIdLC( const TDesC8& aContactLink );
       
    40 
       
    41 private:
       
    42     inline CPresenceCacheBuddyIdCreatorPrivate( 
       
    43             CVPbkContactManager* aContactManager );
       
    44     inline void ConstructL();
       
    45 
       
    46 private: // data
       
    47     CVPbkContactManager* iContactManager;
       
    48     TBool iOwnContactManager;
       
    49     CVPbkContactIdConverter* iConverter;
       
    50 
       
    51     };
       
    52 
       
    53 #endif // PRESENCECACHEBUDDYIDCREATORPRIVATE_H