Added CSV parsing and export of Symbian-format Event logs that have had their tables...
[qwerkisync] / Settings.h
index 0819aa7..b308b6f 100644 (file)
@@ -41,12 +41,12 @@ public:
        static const int kNumModes = MODE_EXPORT + 1;
 
        // Options for targets - sent or recieved
-       enum eTargets
+       enum eDirection
        {
-               TYPE_SENT,
-               TYPE_RECIEVED,
+               OUTGOING,
+               INCOMING,
        };
-       static const int kNumTargets = TYPE_RECIEVED + 1;
+       static const int kNumTargets = INCOMING + 1;
 
 private:
        // The current UI mode of the application (Console/GUI)
@@ -70,6 +70,10 @@ private:
        // Is it OK to disable the cellular radio to prevent calls and messages?
        bool m_DisableCellular;
 
+       // RtcomEventLogger path
+       QString m_DBPath;
+       void DBPath(QString dbPath) { m_DBPath = dbPath; }
+
 public:
        Settings();
 
@@ -82,8 +86,8 @@ public:
        eMode const Mode() const { return m_Mode; }
        eMode const setMode(const eMode mode) { return m_Mode = mode; }
 
-       bool const ShouldProcess(const eTargets target, const EventTypes::eEventTypes eventType) const { return m_ShouldProcess[target][eventType]; }
-       bool const setShouldProcess(const eTargets target, const EventTypes::eEventTypes eventType, const bool shouldProcess = true){ return m_ShouldProcess[target][eventType] = shouldProcess; }
+       bool const ShouldProcess(const eDirection target, const EventTypes::eEventTypes eventType) const { return m_ShouldProcess[target][eventType]; }
+       bool const setShouldProcess(const eDirection target, const EventTypes::eEventTypes eventType, const bool shouldProcess = true){ return m_ShouldProcess[target][eventType] = shouldProcess; }
        bool const anyToProcess()
        {
                for(int targetIndex = 0; targetIndex < kNumTargets; ++targetIndex)
@@ -101,6 +105,8 @@ public:
 
        bool const DisableCellular() const { return m_DisableCellular; }
        bool const setDisableCellular(const bool disableCellular) { return m_DisableCellular = disableCellular; }
+
+       const QString &DBPath() const { return m_DBPath; }
 };
 
 #endif // SETTINGS_H