X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=Settings.h;h=c8bad927636783fe409abca90b62866b102a4e04;hb=289fcb3a9f6489686e658ab0d35be7c1f492d1ac;hp=0819aa76e7d28229457f7dc7b44d972ad1d3eae6;hpb=09cf284409d11f5269cbc106429046f993bffa68;p=qwerkisync diff --git a/Settings.h b/Settings.h index 0819aa7..c8bad92 100644 --- a/Settings.h +++ b/Settings.h @@ -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) @@ -82,8 +82,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)