46 |
46 |
47 class DbHelper |
47 class DbHelper |
48 { |
48 { |
49 public: |
49 public: |
50 DbHelper( const std::wstring& aDrivePath, bool aIsSystemDrive); |
50 DbHelper( const std::wstring& aDrivePath, bool aIsSystemDrive); |
|
51 ~DbHelper(); |
51 TBool IsInstalled(TInt32 aUid) const; |
52 TBool IsInstalled(TInt32 aUid) const; |
|
53 TBool IsAppUidInstalled(TUint32 aAppUid) const; |
52 bool InternalizeIfExists(SisRegistryObject& aSisRegistryObject, const TUint32 aUid ) const; |
54 bool InternalizeIfExists(SisRegistryObject& aSisRegistryObject, const TUint32 aUid ) const; |
53 |
55 |
54 bool GetIsRemovable( TInt32 aComponentId ) const; |
56 bool GetIsRemovable( TInt32 aComponentId ) const; |
55 bool GetInRom( TInt32 aComponentId ) const; |
57 bool GetInRom( TInt32 aComponentId ) const; |
56 std::wstring GetPackageName( TInt32 aComponentId ) const; |
58 std::wstring GetPackageName( TInt32 aComponentId ) const; |
71 TInt GetIndex( TInt32 aComponentId) const; |
73 TInt GetIndex( TInt32 aComponentId) const; |
72 TUint32 GetUidFromFileName( const std::wstring& aFileName ) const; |
74 TUint32 GetUidFromFileName( const std::wstring& aFileName ) const; |
73 TInt GetIndex( TUint32 aPackageUid) const; |
75 TInt GetIndex( TUint32 aPackageUid) const; |
74 |
76 |
75 private: |
77 private: |
|
78 std::vector<TInt32> GetAppRegistrationInfoAppUid(TInt32 aComponentId) const; |
|
79 std::vector<TInt32> GetServiceInfoServiceID(TInt32 aAppUid) const; |
|
80 std::vector<TInt32> GetLocalAppInfoID(TInt32 aAppUid) const; |
|
81 std::vector<TInt32> GetLocalCaptionAndIconID(TInt32 aAppUid) const; |
|
82 std::vector<TInt32> GetViewDataCaptionAndIconID(TInt32 aLocalAppInfoID) const; |
76 TInt32 GetComponentPropertyIntValue( TInt32 aComponentId, std::wstring aComponentPropertyName, TInt32 aDefaultValue = DbHelper::Absent ) const; |
83 TInt32 GetComponentPropertyIntValue( TInt32 aComponentId, std::wstring aComponentPropertyName, TInt32 aDefaultValue = DbHelper::Absent ) const; |
77 TInt32 GetComponentPropertyIntFormattedValue(TInt32 aComponentId, std::wstring aComponentPropertyName, TInt32 aIntFormatter) const; |
84 TInt32 GetComponentPropertyIntFormattedValue(TInt32 aComponentId, std::wstring aComponentPropertyName, TInt32 aIntFormatter) const; |
78 std::wstring GetComponentPropertyStrValue(TInt32 aComponentId, std::wstring aComponentPropertyName, TInt32 aIntFormatter) const; |
85 std::wstring GetComponentPropertyStrValue(TInt32 aComponentId, std::wstring aComponentPropertyName, TInt32 aIntFormatter) const; |
79 std::wstring GetComponentPropertyStrValue(TInt32 aComponentId, std::wstring aComponentPropertyName) const; |
86 std::wstring GetComponentPropertyStrValue(TInt32 aComponentId, std::wstring aComponentPropertyName) const; |
80 |
87 |