phonebookengines/contactsmodel/cntplsql/inc/persistencelayerimpl.h
branchRCL_3
changeset 9 0d28c1c5b6dd
parent 6 e8e3147d53eb
equal deleted inserted replaced
8:5586b4d2ec3e 9:0d28c1c5b6dd
    73 	void CommitCurrentTransactionL(TUint aSessionId);
    73 	void CommitCurrentTransactionL(TUint aSessionId);
    74 	void RollbackCurrentTransactionL(TUint aSessionId);
    74 	void RollbackCurrentTransactionL(TUint aSessionId);
    75 	inline TBool IsTransactionActive() const;
    75 	inline TBool IsTransactionActive() const;
    76 
    76 
    77 	void NotifyObserver() const;
    77 	void NotifyObserver() const;
       
    78 	
       
    79     void AddSqlDBObserverL( MLplSqlDatabaseObserver& aSqlDatabaseObserver );
       
    80     void RemoveSqlDBObserverL( MLplSqlDatabaseObserver& aSqlDatabaseObserver );
    78 
    81 
    79 private: // General methods used to implement all interfaces.
    82 private: // General methods used to implement all interfaces.
    80 	CPplContactsFile(CLplContactProperties& aProps, MContactDbObserver* aObserver);
    83 	CPplContactsFile(CLplContactProperties& aProps, MContactDbObserver* aObserver);
    81 	void ConstructL();
    84 	void ConstructL();
    82 
    85 
   100 	TDriveUnit iDatabaseDrive;
   103 	TDriveUnit iDatabaseDrive;
   101 	TBool iFileIsOpen;
   104 	TBool iFileIsOpen;
   102 	
   105 	
   103 	RPplIccContactStore iIccContactStore; //owned
   106 	RPplIccContactStore iIccContactStore; //owned
   104 	HBufC8* iConfigureStr;
   107 	HBufC8* iConfigureStr;
       
   108 	
       
   109 	// The array of observers which are monitoring RSqlDatabase.
       
   110     RPointerArray<MLplSqlDatabaseObserver> iSqlDatabaseObservers;
   105 	};
   111 	};
   106 
   112 
   107 
   113 
   108 inline void CPplContactsFile::LocalFsL()
   114 inline void CPplContactsFile::LocalFsL()
   109   	{
   115   	{