[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kde4_kconfig/kconfig
From:       Thomas Braxton <brax108 () cox ! net>
Date:       2006-09-02 18:42:52
Message-ID: 1157222572.571283.6375.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 580155 by braxton:

implement forceGlobal() and setForceGlobal()


 M  +11 -0     kconfig.cpp  
 M  +14 -0     kconfig.h  


--- branches/work/kde4_kconfig/kconfig/kconfig.cpp #580154:580155
@@ -495,6 +495,17 @@
 {
     return d->configState == ReadOnly;
 }
+
+void KConfig::setForceGlobal(bool b)
+{
+    d->bForceGlobal = b;
+}
+
+bool KConfig::forceGlobal() const
+{
+    return d->bForceGlobal;
+}
+
 void KConfig::setGroup(const char* aGroup)
 {
     if (aGroup && *aGroup)
--- branches/work/kde4_kconfig/kconfig/kconfig.h #580154:580155
@@ -103,6 +103,20 @@
     bool isReadOnly() const;
 
     /**
+     * Forces all following write-operations to be performed on @c kdeglobals,
+     * independent of the @c Global flag in writeEntry().
+     * @param force true to force writing to kdeglobals
+     * @see forceGlobal
+     */
+    void setForceGlobal(bool force);
+    /**
+     * Returns true if all entries are being written into kdeglobals.
+     * @return true if all entries are being written into kdeglobals
+     * @see setForceGlobal
+     */
+    bool forceGlobal() const;
+
+    /**
      * Returns a list of groups that are known.
      * @return a list of of groups
      */
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic