1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/core/stdpaths.h
3 // Purpose: wxStandardPaths for CoreFoundation systems
4 // Author: David Elliott
8 // Copyright: (c) 2004 David Elliott
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MAC_STDPATHS_H_
13 #define _WX_MAC_STDPATHS_H_
18 typedef const __CFURL
* wxCFURLRef
;
19 typedef __CFBundle
* wxCFBundleRef
;
21 // we inherit the GUI CF-based wxStandardPaths implementation from the Unix one
22 // used for console programs if possible (i.e. if we're under a Unix system at
25 #include "wx/unix/stdpaths.h"
26 #define wxStandardPathsCFBase wxStandardPaths
28 #define wxStandardPathsCFBase wxStandardPathsBase
31 // ----------------------------------------------------------------------------
33 // ----------------------------------------------------------------------------
35 class WXDLLIMPEXP_BASE wxStandardPathsCF
: public wxStandardPathsCFBase
38 virtual ~wxStandardPathsCF();
40 // wxMac specific: allow user to specify a different bundle
41 wxStandardPathsCF(wxCFBundleRef bundle
);
42 void SetBundle(wxCFBundleRef bundle
);
44 // implement base class pure virtuals
45 virtual wxString
GetExecutablePath() const;
46 virtual wxString
GetConfigDir() const;
47 virtual wxString
GetUserConfigDir() const;
48 virtual wxString
GetDataDir() const;
49 virtual wxString
GetLocalDataDir() const;
50 virtual wxString
GetUserDataDir() const;
51 virtual wxString
GetPluginsDir() const;
52 virtual wxString
GetResourcesDir() const;
54 GetLocalizedResourcesDir(const wxString
& lang
,
55 ResourceCat category
= ResourceCat_None
) const;
56 virtual wxString
GetDocumentsDir() const;
59 // Ctor is protected, use wxStandardPaths::Get() instead of instantiating
60 // objects of this class directly.
63 // this function can be called with any of CFBundleCopyXXXURL function
64 // pointer as parameter
65 wxString
GetFromFunc(wxCFURLRef (*func
)(wxCFBundleRef
)) const;
67 wxCFBundleRef m_bundle
;
70 #endif // _WX_MAC_STDPATHS_H_