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

List:       kde-commits
Subject:    koffice/lib/store
From:       Laurent Montel <montel () kde ! org>
Date:       2004-07-10 12:07:43
Message-ID: 20040710120743.8ADBE16AFE () office ! kde ! org
[Download RAW message or body]

CVS commit by mlaurent: 

Add other function to write settings


  M +20 -0     koxmlwriter.cc   1.15
  M +3 -0      koxmlwriter.h   1.16


--- koffice/lib/store/koxmlwriter.cc  #1.14:1.15
@@ -337,2 +337,22 @@ void KoXmlWriter::addConfigItem( const Q
     endElement();
 }
+
+void KoXmlWriter::addConfigItem( const QString & configName, long value )
+{
+    startElement( "config:config-item" );
+    addAttribute( "config:name", configName );
+    addAttribute( "config:type", "long" );
+    addTextNode( QString::number( value ) );
+    endElement();
+}
+
+void KoXmlWriter::addConfigItem( const QString & configName, short value )
+{
+    startElement( "config:config-item" );
+    addAttribute( "config:name", configName );
+    addAttribute( "config:type", "short" );
+    addTextNode( QString::number( value ) );
+    endElement();
+}
+
+//todo <value>datetime</value> and <value>base64Binary</value>

--- koffice/lib/store/koxmlwriter.h  #1.15:1.16
@@ -182,4 +182,7 @@ public:
     void addConfigItem( const QString & configName, double value );
 
+    void addConfigItem( const QString & configName, long value );
+
+    void addConfigItem( const QString & configName, short value );
 
 


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

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