contentstorage/srvinc/casrvengutils.h
changeset 60 f62f87b200ec
child 66 32469d7d46ff
equal deleted inserted replaced
4:1a2a00e78665 60:f62f87b200ec
       
     1 /*
       
     2  * Copyright (c) 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 : The API supports item information that is not supported by
       
    15  *                the content arsenal server itself
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef CASRVENGUTILS_H
       
    20 #define CASRVENGUTILS_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <apgcli.h>
       
    24 /// Number of characters in UID and in MMC-id strings.
       
    25 class TApaAppInfo;
       
    26 class CCaInnerEntry;
       
    27 
       
    28 NONSHARABLE_CLASS( CCaSrvEngUtils ): public CBase
       
    29     {
       
    30 public:
       
    31 
       
    32     virtual ~CCaSrvEngUtils();
       
    33     static CCaSrvEngUtils* NewL();
       
    34 
       
    35     static TInt GetAppUid( const CCaInnerEntry& aEntry, TUid& aAppUid );
       
    36 
       
    37     // Caption support
       
    38 
       
    39     IMPORT_C TInt GetAppInfo( const CCaInnerEntry& aEntry,
       
    40             TApaAppInfo& aAppInfo ) const;
       
    41 
       
    42     IMPORT_C TInt GetApaAppInfo( TUid aUid, TApaAppInfo& aInfo ) const;
       
    43 
       
    44     /**
       
    45      * Fetches aEngObj native attribute value.
       
    46      * @param aEngObj engine object.
       
    47      * @param aAttrExists ETrue if attribute exist.
       
    48      * @param aAttrVal attribute value.
       
    49      */
       
    50     TBool IsNative( const CCaInnerEntry& aEntry );
       
    51 
       
    52 private:
       
    53 
       
    54     CCaSrvEngUtils();
       
    55 
       
    56     void ConstructL();
       
    57 
       
    58     /**
       
    59      * Checks wether application is native
       
    60      * @since S60 v5.0.
       
    61      * @param aAppUid applications uid
       
    62      * @param aIsNative ETrue if apppication is native
       
    63      */
       
    64     void IsNative( TUid aAppUid, TBool& aIsNative );
       
    65 
       
    66 private:
       
    67     // Data
       
    68 
       
    69 
       
    70     RApaLsSession iApaLsSession;
       
    71     };
       
    72 
       
    73 #endif // CASRVENGUTILS_H