]>
Commit | Line | Data |
---|---|---|
726b98e9 DE |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/mac/corefoundation/stdpaths.h | |
3 | // Purpose: wxStandardPaths for CoreFoundation systems | |
4 | // Author: David Elliott | |
5 | // Modified by: | |
6 | // Created: 2004-10-27 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 2004 David Elliott | |
9 | // Licence: wxWindows licence | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_MAC_STDPATHS_H_ | |
13 | #define _WX_MAC_STDPATHS_H_ | |
14 | ||
15 | struct __CFBundle; | |
16 | ||
17 | // ---------------------------------------------------------------------------- | |
18 | // wxStandardPaths | |
19 | // ---------------------------------------------------------------------------- | |
20 | ||
21 | class WXDLLIMPEXP_BASE wxStandardPathsCF : public wxStandardPathsBase | |
22 | { | |
23 | public: | |
24 | wxStandardPathsCF(); | |
25 | ~wxStandardPathsCF(); | |
26 | ||
726b98e9 DE |
27 | // wxMac specific: allow user to specify a different bundle |
28 | wxStandardPathsCF(struct __CFBundle *bundle); | |
29 | void SetBundle(struct __CFBundle *bundle); | |
30 | ||
31 | // implement base class pure virtuals | |
32 | virtual wxString GetConfigDir() const; | |
33 | virtual wxString GetUserConfigDir() const; | |
34 | virtual wxString GetDataDir() const; | |
35 | virtual wxString GetLocalDataDir() const; | |
36 | virtual wxString GetUserDataDir() const; | |
37 | virtual wxString GetPluginsDir() const; | |
38 | protected: | |
39 | struct __CFBundle *m_bundle; | |
40 | }; | |
41 | ||
fc480dc1 DE |
42 | // If using UNIX (i.e. darwin) then use UNIX standard paths |
43 | #if defined(__UNIX__) | |
726b98e9 | 44 | #include "wx/unix/stdpaths.h" |
fc480dc1 DE |
45 | #else |
46 | // If compiling wxMac for CarbonLib then we are wxStandardPaths | |
47 | class WXDLLIMPEXP_BASE wxStandardPaths: public wxStandardPathsCF | |
48 | { | |
49 | }; | |
726b98e9 DE |
50 | #endif |
51 | ||
52 | #endif // _WX_MAC_STDPATHS_H_ |