summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/lib/viewmap.cpp
Unidiff
Diffstat (limited to 'noncore/graphics/opie-eye/lib/viewmap.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/lib/viewmap.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/lib/viewmap.cpp b/noncore/graphics/opie-eye/lib/viewmap.cpp
new file mode 100644
index 0000000..ca242b7
--- a/dev/null
+++ b/noncore/graphics/opie-eye/lib/viewmap.cpp
@@ -0,0 +1,25 @@
1#include <iface/dirview.h>
2
3
4namespace {
5 ViewMap *_viewMap = 0;
6 PDirView *_dirView = 0;
7}
8
9
10ViewMap *viewMap() {
11 if ( !_viewMap )
12 _viewMap = new ViewMap;
13
14 return _viewMap;
15}
16
17
18PDirView* currentView(){
19 return _dirView;
20}
21
22
23void setCurrentView( PDirView* view ) {
24 _dirView = view;
25}