1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/corefoundation/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 // ----------------------------------------------------------------------------
23 // ----------------------------------------------------------------------------
25 class WXDLLIMPEXP_BASE wxStandardPathsCF
: public wxStandardPathsBase
29 virtual ~wxStandardPathsCF();
31 // wxMac specific: allow user to specify a different bundle
32 wxStandardPathsCF(wxCFBundleRef bundle
);
33 void SetBundle(wxCFBundleRef bundle
);
35 // implement base class pure virtuals
36 virtual wxString
GetExecutablePath() const;
37 virtual wxString
GetConfigDir() const;
38 virtual wxString
GetUserConfigDir() const;
39 virtual wxString
GetDataDir() const;
40 virtual wxString
GetLocalDataDir() const;
41 virtual wxString
GetUserDataDir() const;
42 virtual wxString
GetPluginsDir() const;
43 virtual wxString
GetResourcesDir() const;
45 GetLocalizedResourcesDir(const wxChar
*lang
,
46 ResourceCat category
= ResourceCat_None
) const;
47 virtual wxString
GetDocumentsDir() const;
50 // this function can be called with any of CFBundleCopyXXXURL function
51 // pointer as parameter
52 wxString
GetFromFunc(wxCFURLRef (*func
)(wxCFBundleRef
)) const;
54 wxCFBundleRef m_bundle
;
57 // If using UNIX (i.e. darwin) then use UNIX standard paths
59 #include "wx/unix/stdpaths.h"
61 // If compiling wxMac for CarbonLib then we are wxStandardPaths
62 class WXDLLIMPEXP_BASE wxStandardPaths
: public wxStandardPathsCF
67 #endif // _WX_MAC_STDPATHS_H_