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.cpp | 25 |
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 | |||
4 | namespace { | ||
5 | ViewMap *_viewMap = 0; | ||
6 | PDirView *_dirView = 0; | ||
7 | } | ||
8 | |||
9 | |||
10 | ViewMap *viewMap() { | ||
11 | if ( !_viewMap ) | ||
12 | _viewMap = new ViewMap; | ||
13 | |||
14 | return _viewMap; | ||
15 | } | ||
16 | |||
17 | |||
18 | PDirView* currentView(){ | ||
19 | return _dirView; | ||
20 | } | ||
21 | |||
22 | |||
23 | void setCurrentView( PDirView* view ) { | ||
24 | _dirView = view; | ||
25 | } | ||