contacts_plat/cca_launch_api/inc/ccapbkcontextlauncher.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 
       
    19 #ifndef CCAPBKCONTEXTLAUNCHER_H
       
    20 #define CCAPBKCONTEXTLAUNCHER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class MVPbkContactLink;
       
    25 class TUid;
       
    26 class CCCAPbkContextLauncherPrivate;
       
    27 
       
    28 
       
    29 /**
       
    30  * Launches Contact Card and MyCard views in Phonebook context.
       
    31  *
       
    32  *  @lib ccaclient.lib
       
    33  */
       
    34 NONSHARABLE_CLASS( CCCAPbkContextLauncher ) : public CBase
       
    35     {
       
    36 public: // constructor and destructor
       
    37 
       
    38     IMPORT_C static CCCAPbkContextLauncher* NewL();
       
    39     ~CCCAPbkContextLauncher();
       
    40 
       
    41 public: // New functions
       
    42 
       
    43     /**
       
    44      * Activates MyCard view in Phonebook context.
       
    45      * This function leaves with KErrNotSupported if MyCard is not supported
       
    46      * MyCard is supported if feature flag FF_CONTACTS_MYCARD is defined.
       
    47      *
       
    48      * @param aUid CCA view plugin UID, if UID is NULL then default view for
       
    49      *        the MyCard is activated
       
    50      */
       
    51     IMPORT_C void LaunchMyCardViewL(
       
    52             const TUid* aUid = NULL );
       
    53 
       
    54     /**
       
    55      * Activates Contact Card view in Phonebook context
       
    56      *
       
    57      * @param aPackedContactLink packed link to contact that is opened in
       
    58      *        Contact Card view. @see MVPbkContactLink
       
    59      * @param aUid CCA view plugin UID, if UID is NULL then
       
    60      *        default view for the contact is activated.
       
    61      */
       
    62     IMPORT_C void LaunchCCAViewL(
       
    63             const TDesC8& aPackedContactLink,
       
    64             const TUid* aUid = NULL );
       
    65 
       
    66 private:
       
    67     inline CCCAPbkContextLauncher();
       
    68     inline void ConstructL();
       
    69 
       
    70 private:
       
    71     CCCAPbkContextLauncherPrivate* iImpl;
       
    72 
       
    73     };
       
    74 
       
    75 #endif // CCAPBKCONTEXTLAUNCHER_H
       
    76 
       
    77 // End of File