]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/regconf.h
1) APPCONF_ constants renamed to wxCONFIG_
[wxWidgets.git] / include / wx / msw / regconf.h
index fed7e2b50ba26f3804c98d60d3b5bad9d3f8a716..38f5ba608cdda6f22c31997ef571b46e82aa9919 100644 (file)
 #ifndef   _REGCONF_H
 #define   _REGCONF_H
 
+#ifdef __GNUG__
+#pragma interface "regconf.h"
+#endif
+
 // ----------------------------------------------------------------------------
 // wxRegConfig
 // ----------------------------------------------------------------------------
@@ -38,12 +42,21 @@ public:
   virtual bool GetFirstEntry(wxString& str, long& lIndex);
   virtual bool GetNextEntry (wxString& str, long& lIndex);
 
+  // tests for existence
+  virtual bool HasGroup(const wxString& strName) const;
+  virtual bool HasEntry(const wxString& strName) const;
+
+    // get number of entries/subgroups in the current group, with or without
+    // it's subgroups
+  virtual uint GetNumberOfEntries(bool bRecursive = FALSE) const = 0;
+  virtual uint GetNumberOfGroups(bool bRecursive = FALSE) const = 0;
+
   // read/write
   virtual bool Read(wxString&, const char *, const char * = 0) const;
   virtual bool Read(long&, const char *, long = 0) const;
   virtual bool Write(const char *szKey, const char *szValue);
   virtual bool Write(const char *szKey, long Value);
-  virtual bool Flush(bool /* bCurrentOnly = FALSE */ ) { return true; }
+  virtual bool Flush(bool /* bCurrentOnly = FALSE */ ) { return TRUE; }
 
   // delete
   virtual bool DeleteEntry(const char *szKey, bool bGroupIfEmptyAlso);
@@ -59,4 +72,4 @@ private:
   wxString  m_strPath;
 };
 
-#endif  //_REGCONF_H
\ No newline at end of file
+#endif  //_REGCONF_H