logsui/logsengine/inc/logscommondata.h
changeset 2 7119b73b84d6
parent 0 4a5361db8937
child 15 76d2cf7a585e
equal deleted inserted replaced
0:4a5361db8937 2:7119b73b84d6
    18 #ifndef LOGSCOMMONDATA_H
    18 #ifndef LOGSCOMMONDATA_H
    19 #define LOGSCOMMONDATA_H
    19 #define LOGSCOMMONDATA_H
    20 
    20 
    21 #include <qmobilityglobal.h>
    21 #include <qmobilityglobal.h>
    22 #include "logsevent.h"
    22 #include "logsevent.h"
       
    23 #include "logsconfigurationparams.h"
    23 
    24 
    24 QTM_BEGIN_NAMESPACE
    25 QTM_BEGIN_NAMESPACE
    25 class QContactManager;
    26 class QContactManager;
    26 QTM_END_NAMESPACE
    27 QTM_END_NAMESPACE
    27 
    28 
    55          * @return max number of events, -1 if max num is not configured 
    56          * @return max number of events, -1 if max num is not configured 
    56          */
    57          */
    57         int maxReadSize() const;
    58         int maxReadSize() const;
    58         LogsEvent::LogsDirection maxReadSizeDirection() const;
    59         LogsEvent::LogsDirection maxReadSizeDirection() const;
    59         
    60         
       
    61         int updateConfiguration(const LogsConfigurationParams& params);
       
    62         LogsConfigurationParams& currentConfiguration();
    60     private:
    63     private:
    61         
    64         
    62         QContactManager* mContactManager;
    65         QContactManager* mContactManager;
    63         int mMaxReadSize;
    66         int mMaxReadSize;
    64         LogsEvent::LogsDirection mMaxReadSizeDir;
    67         LogsEvent::LogsDirection mMaxReadSizeDir;
       
    68         LogsConfigurationParams mConfiguration;
    65     
    69     
    66     private:
    70     private:
    67         friend class UT_LogsCommonData;
    71         friend class UT_LogsCommonData;
       
    72         friend class UT_LogsModel;
    68         
    73         
    69 };
    74 };
    70 
    75 
    71 
    76 
    72 #endif // LOGSCOMMONDATA_H
    77 #endif // LOGSCOMMONDATA_H