ncdengine/inc/ncdinstalledapplication.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006-2008 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:   Contains MNcdInstallApplication interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_NCD_INSTALLED_APPLICATION_H
       
    20 #define M_NCD_INSTALLED_APPLICATION_H
       
    21 
       
    22 
       
    23 #include "catalogsbase.h"
       
    24 #include "ncdinterfaceids.h"
       
    25 
       
    26 
       
    27 /**
       
    28  * 
       
    29  *
       
    30  *  @see MNcdNodeInstall 
       
    31  *
       
    32  *  
       
    33  */
       
    34 class MNcdInstalledApplication : public virtual MCatalogsBase
       
    35     {
       
    36 public:
       
    37 
       
    38     /**
       
    39      * Unique identifier for the interface, required for all MCatalogsBase interfaces.
       
    40      *
       
    41      * 
       
    42      */
       
    43     enum { KInterfaceUid = ENcdInstalledApplicationUid };
       
    44 
       
    45     /**
       
    46      * Returns the UID of the installed application.
       
    47      * 
       
    48      * @note Valid only if IsInstalledL() returns ETrue
       
    49      *
       
    50      * 
       
    51      * @see MNcdNodeContentInfo
       
    52      * @return UID of the installed application.     
       
    53      */
       
    54     virtual TUid Uid() const = 0;
       
    55 
       
    56 
       
    57     /**
       
    58      * Document name that should be given to the application when it is
       
    59      * launched
       
    60      *
       
    61      * 
       
    62      * @return Document name
       
    63      */
       
    64     virtual const TDesC& DocumentName() const = 0;
       
    65 
       
    66 protected:
       
    67 
       
    68     /**
       
    69      * Destructor.
       
    70      * 
       
    71      * @see MCatalogsBase::~MCatalogsBase()
       
    72      */
       
    73     virtual ~MNcdInstalledApplication() {}
       
    74 
       
    75     };
       
    76 
       
    77 
       
    78 #endif // M_NCD_INSTALLED_APPLICATION_H