messagingapp/msgui/appengine/inc/conversationsengine.h
changeset 27 e4592d119491
parent 25 84d9eb65b26f
child 47 5b14749788d7
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
    19 #define CONVERSATIONS_ENGINE_H
    19 #define CONVERSATIONS_ENGINE_H
    20 
    20 
    21 // INCLUDES
    21 // INCLUDES
    22 #include <QObject>
    22 #include <QObject>
    23 #include <QStandardItemModel>
    23 #include <QStandardItemModel>
       
    24 #include <sqldb.h>
    24 
    25 
    25 #ifdef BUILD_DLL
    26 #ifdef BUILD_DLL
    26 #define CONVERSATIONS_ENGINE_API_EXPORT Q_DECL_EXPORT
    27 #define CONVERSATIONS_ENGINE_API_EXPORT Q_DECL_EXPORT
    27 #else
    28 #else
    28 #define CONVERSATIONS_ENGINE_API_EXPORT Q_DECL_IMPORT
    29 #define CONVERSATIONS_ENGINE_API_EXPORT Q_DECL_IMPORT
   200      * @param msgType message sub type is written to this.
   201      * @param msgType message sub type is written to this.
   201      */
   202      */
   202     void markAsReadAndGetType( qint32 messageId,
   203     void markAsReadAndGetType( qint32 messageId,
   203                                int& msgType,
   204                                int& msgType,
   204                                int& msgSubType);
   205                                int& msgSubType);
       
   206     
       
   207     /*
       
   208      * Get SQL DB handle
       
   209      * @param isOpen, set to true if open, check this before using the handle
       
   210      */
       
   211     RSqlDatabase& getDBHandle(TBool& isOpen);
       
   212     
   205 private:
   213 private:
   206 
   214 
   207     /**
   215     /**
   208      * Constructor
   216      * Constructor
   209      */
   217      */