launcher/inc/launcherdllelement.h
branchRCL_3
changeset 20 fad26422216a
parent 0 d6fe6244b863
equal deleted inserted replaced
19:b3cee849fa46 20:fad26422216a
       
     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 LAUNCHERDLLELEMENT_H_
       
    19 #define LAUNCHERDLLELEMENT_H_
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 typedef TBuf8<8> TDllIdValue;
       
    24 
       
    25 class CLauncherDLLElement : public CBase
       
    26     {
       
    27 public:
       
    28     
       
    29     enum TDifference
       
    30         {
       
    31         EDifference_UID1,      // UID1 is different
       
    32         EDifference_UID2,      // UID1 is different
       
    33         EDifference_UID3,      // UID1 is different
       
    34         EDifference_SID,       // SID is different
       
    35         EDifference_Capability // Capabilities are different
       
    36         };
       
    37     
       
    38     virtual ~CLauncherDLLElement();
       
    39     static CLauncherDLLElement* NewL();
       
    40     static CLauncherDLLElement* NewLC(); 
       
    41     
       
    42     /*
       
    43      * Compares DLL elements.
       
    44      * @return ETrue if differencies exist, EFalse otherwise.     
       
    45      * @param aReferenceElement Reference DLL-element for comparison
       
    46      * @param aDifferenceList Differencies are added to this list.
       
    47      */
       
    48     TBool CompareL(const CLauncherDLLElement& aReferenceElement, RArray<TDifference>& aDifferenceList) const;
       
    49     
       
    50     /*
       
    51      * Returns DLL name
       
    52      * @return DLL name
       
    53      */
       
    54     TFileName Name() const;    
       
    55     /*
       
    56      * Sets DLL name
       
    57      * @param aName DLL name
       
    58      */
       
    59     void SetNameL(const TFileName& aName);
       
    60     
       
    61     /*
       
    62      * Returns DLL UID1
       
    63      * @return UID1 object
       
    64      */
       
    65     TUid UID1() const;
       
    66     
       
    67     /*
       
    68      * Sets DLL UID1 
       
    69      * @param aUID1 UID1 object
       
    70      */
       
    71     void SetUID1L(TUid aUID1);
       
    72     
       
    73     /*
       
    74      * Returns DLL UID2
       
    75      * @return UID2 object
       
    76      */
       
    77     TUid UID2() const;
       
    78         
       
    79     /*
       
    80      * Sets DLL UID2 
       
    81      * @param aUID2 UID2 object
       
    82      */
       
    83     void SetUID2L(TUid aUID2);
       
    84         
       
    85     /*
       
    86      * Returns DLL UID3
       
    87      * @return UID3 object
       
    88      */
       
    89     TUid UID3() const;
       
    90     
       
    91     /*
       
    92      * Sets DLL UID3
       
    93      * @param aUID3 UID3 object
       
    94      */
       
    95     void SetUID3L(TUid aUID3);
       
    96     
       
    97     /*
       
    98      * Returns DLL SID
       
    99      * @return SID object
       
   100      */
       
   101     TUid SID() const;
       
   102     
       
   103     /*
       
   104      * Sets DLL SID
       
   105      * @param aSID SID object
       
   106      */
       
   107     void SetSIDL(TUid aSID);
       
   108     
       
   109     /*
       
   110      * Returns DLL capability
       
   111      * @return capability value
       
   112      */    
       
   113     TUint32 Capability() const;
       
   114     
       
   115     /*
       
   116      * Sets DLL capability
       
   117      * @param aCapability capability value
       
   118      */
       
   119     void SetCapabilityL(TUint32 aCapability);
       
   120     
       
   121 protected:
       
   122     CLauncherDLLElement();
       
   123     virtual void ConstructL();
       
   124     
       
   125 private:
       
   126     TFileName   iName;
       
   127     TUid iUID1;
       
   128     TUid iUID2;
       
   129     TUid iUID3;
       
   130     TUid iSID;
       
   131     TUint32 iCapability;
       
   132     };
       
   133 
       
   134 #endif /* LAUNCHERDLLELEMENT_H_ */