]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/iniconf.cpp
compilation fix for GTK+ 2.0
[wxWidgets.git] / src / palmos / iniconf.cpp
... / ...
CommitLineData
1///////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/iniconf.cpp
3// Purpose: implementation of wxIniConfig class
4// Author: William Osborne
5// Modified by:
6// Created: 10/13/04
7// RCS-ID: $Id:
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13#pragma implementation "iniconf.h"
14#endif
15
16// For compilers that support precompilation, includes "wx.h".
17#include "wx/wxprec.h"
18
19#ifdef __BORLANDC__
20#pragma hdrstop
21#endif
22
23#ifndef WX_PRECOMP
24 #include "wx/string.h"
25 #include "wx/intl.h"
26 #include "wx/event.h"
27 #include "wx/app.h"
28 #include "wx/utils.h"
29#endif //WX_PRECOMP
30
31// Doesn't yet compile in Unicode mode
32
33#if wxUSE_CONFIG && !wxUSE_UNICODE
34
35#include "wx/dynarray.h"
36#include "wx/log.h"
37#include "wx/config.h"
38#include "wx/file.h"
39
40#include "wx/palmos/iniconf.h"
41
42#include "wx/palmos/wrapwin.h"
43
44// ----------------------------------------------------------------------------
45// constants
46// ----------------------------------------------------------------------------
47
48// we replace all path separators with this character
49#define PATH_SEP_REPLACE '_'
50
51// ============================================================================
52// implementation
53// ============================================================================
54
55// ----------------------------------------------------------------------------
56// ctor & dtor
57// ----------------------------------------------------------------------------
58
59wxIniConfig::wxIniConfig(const wxString& strAppName,
60 const wxString& strVendor,
61 const wxString& localFilename,
62 const wxString& globalFilename,
63 long style)
64 : wxConfigBase(strAppName, strVendor, localFilename, globalFilename, style)
65{
66}
67
68wxIniConfig::~wxIniConfig()
69{
70}
71
72// ----------------------------------------------------------------------------
73// path management
74// ----------------------------------------------------------------------------
75
76void wxIniConfig::SetPath(const wxString& strPath)
77{
78}
79
80const wxString& wxIniConfig::GetPath() const
81{
82 static wxString s_str;
83
84 return s_str;
85}
86
87wxString wxIniConfig::GetPrivateKeyName(const wxString& szKey) const
88{
89 wxString strKey;
90
91 return strKey;
92}
93
94wxString wxIniConfig::GetKeyName(const wxString& szKey) const
95{
96 wxString strKey;
97
98 return strKey;
99}
100
101// ----------------------------------------------------------------------------
102// enumeration
103// ----------------------------------------------------------------------------
104
105bool wxIniConfig::GetFirstGroup(wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
106{
107 return FALSE;
108}
109
110bool wxIniConfig::GetNextGroup (wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
111{
112 return FALSE;
113}
114
115bool wxIniConfig::GetFirstEntry(wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
116{
117 return FALSE;
118}
119
120bool wxIniConfig::GetNextEntry (wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
121{
122 return FALSE;
123}
124
125// ----------------------------------------------------------------------------
126// misc info
127// ----------------------------------------------------------------------------
128
129size_t wxIniConfig::GetNumberOfEntries(bool WXUNUSED(bRecursive)) const
130{
131 return (size_t)-1;
132}
133
134size_t wxIniConfig::GetNumberOfGroups(bool WXUNUSED(bRecursive)) const
135{
136 return (size_t)-1;
137}
138
139bool wxIniConfig::HasGroup(const wxString& WXUNUSED(strName)) const
140{
141 return FALSE;
142}
143
144bool wxIniConfig::HasEntry(const wxString& WXUNUSED(strName)) const
145{
146 return FALSE;
147}
148
149// is current group empty?
150bool wxIniConfig::IsEmpty() const
151{
152 return TRUE;
153}
154
155// ----------------------------------------------------------------------------
156// read/write
157// ----------------------------------------------------------------------------
158
159bool wxIniConfig::DoReadString(const wxString& szKey, wxString *pstr) const
160{
161 return FALSE;
162}
163
164bool wxIniConfig::DoReadLong(const wxString& szKey, long *pl) const
165{
166 return FALSE ;
167}
168
169bool wxIniConfig::DoWriteString(const wxString& szKey, const wxString& szValue)
170{
171 return FALSE;
172}
173
174bool wxIniConfig::DoWriteLong(const wxString& szKey, long lValue)
175{
176 return FALSE;
177}
178
179bool wxIniConfig::Flush(bool /* bCurrentOnly */)
180{
181 return FALSE;
182}
183
184// ----------------------------------------------------------------------------
185// delete
186// ----------------------------------------------------------------------------
187
188bool wxIniConfig::DeleteEntry(const wxString& szKey, bool bGroupIfEmptyAlso)
189{
190 return FALSE;
191}
192
193bool wxIniConfig::DeleteGroup(const wxString& szKey)
194{
195 return FALSE;
196}
197
198#ifndef MAX_PATH
199#define MAX_PATH 256
200#endif
201
202bool wxIniConfig::DeleteAll()
203{
204 return FALSE;
205}
206
207bool wxIniConfig::RenameEntry(const wxString& WXUNUSED(oldName),
208 const wxString& WXUNUSED(newName))
209{
210 return FALSE;
211}
212
213bool wxIniConfig::RenameGroup(const wxString& WXUNUSED(oldName),
214 const wxString& WXUNUSED(newName))
215{
216 return FALSE;
217}
218
219#endif
220 // wxUSE_CONFIG && wxUSE_UNICODE