omads/omadsextensions/adapters/notes/inc/nsmlnotepadDatabase.h
changeset 38 1bb40c16ad33
parent 22 1a3f0bca12c6
equal deleted inserted replaced
37:74081e1a0272 38:1bb40c16ad33
   111         * Checks if the database has been succesfully openend
   111         * Checks if the database has been succesfully openend
   112         * @return ETrue if database has been succesfully opened, EFalse otherwise
   112         * @return ETrue if database has been succesfully opened, EFalse otherwise
   113         */
   113         */
   114         TBool IsOpen();
   114         TBool IsOpen();
   115         
   115         
   116         /**
   116             
   117         * gets teh default database storename of the notepad database
       
   118         * @Param aStoreName holds the default notepad database's file name.
       
   119         */
       
   120         void GetDefaultDatastoreName(TDes& aStoreName);
       
   121         
       
   122         /**
       
   123         * lists the notepad database file names
       
   124         * @returns available notepad database file names.
       
   125         */
       
   126         CDesCArray* ListDatabasesL();
       
   127         
       
   128         /**
   117         /**
   129         * Fetch all the note items if aKey is not present. Else item with the aKey.
   118         * Fetch all the note items if aKey is not present. Else item with the aKey.
   130         * @returns array of NpdItem.
   119         * @returns array of NpdItem.
   131         */
   120         */
   132         CArrayPtr<CNpdItem>* FetchItemsLC(TBool aIncludeText = EFalse, TInt* aKey = 0);
   121         CArrayPtr<CNpdItem>* FetchItemsLC(TBool aIncludeText = EFalse, TInt* aKey = 0);
   138         void CloseAgendaSessions();
   127         void CloseAgendaSessions();
   139 
   128 
   140    private: // Data
   129    private: // Data
   141         
   130         
   142         // Flag for whether database has been opened
   131         // Flag for whether database has been opened
   143         TBool iOpened;
   132         TBool iOpened;       
   144         HBufC* iDataFile;        
       
   145         CCalSession*        iSession;
   133         CCalSession*        iSession;
   146         CCalInstanceView*   iInstanceView;
   134         CCalInstanceView*   iInstanceView;
   147         CCalEntryView*      iEntryView;
   135         CCalEntryView*      iEntryView;
   148  
   136  
   149     enum TNotepadColumnType
   137     enum TNotepadColumnType