1
/***************************************************************
2
* Name: ThreadSearchViewManagerBase
3
* Purpose: ThreadSearchViewManagerBase is an interface to the
4
* different graphical classes that can manage the view.
5
* Author: Jerome ANTOINE
7
* Copyright: Jerome ANTOINE
9
**************************************************************/
11
#ifndef THREAD_SEARCH_VIEW_MANAGER_BASE_H
12
#define THREAD_SEARCH_VIEW_MANAGER_BASE_H
14
class ThreadSearchView;
16
class ThreadSearchViewManagerBase
21
TypeMessagesNotebook = 0,
25
/** BuildThreadSearchViewManagerBase
26
* Builds a ThreadSearchViewManagerMessagesNotebook or a ThreadSearchViewManagerAui pointer depending
28
* @return ThreadSearchViewManagerBase*
30
static ThreadSearchViewManagerBase* BuildThreadSearchViewManagerBase(ThreadSearchView* pView,
31
bool addViewToManager,
32
eManagerTypes managerType);
35
virtual ~ThreadSearchViewManagerBase() {}
37
eManagerTypes virtual GetManagerType() = 0;
39
/** By default, view is not managed by the manager.
40
* This method adds view to manager if not already managed
41
* and given in constructor.
42
* No parameters because only m_pThreadSearchView is managed.
44
virtual void AddViewToManager() = 0;
46
/** By default, view is not managed by the manager.
47
* This method removes view from manager if managed.
48
* No parameters because only m_pThreadSearchView is managed
49
* and given in constructor.
50
* m_pThreadSearchView is not modified.
52
virtual void RemoveViewFromManager() = 0;
54
/** Return true if success. Fails if view is not managed.
55
* @param show : true => show, false => hide
56
* @return true if success.
58
virtual bool ShowView(bool show = true) = 0;
60
/** Return true if view is visible.
61
* @param show : true => show, false => hide
62
* @return true if view is visible.
64
virtual bool IsViewShown() = 0;
68
ThreadSearchViewManagerBase(ThreadSearchView* pThreadSearchView)
69
: m_pThreadSearchView(pThreadSearchView)
75
ThreadSearchView* m_pThreadSearchView;
80
#endif // THREAD_SEARCH_VIEW_MANAGER_BASE_H