summaryrefslogtreecommitdiffstats
path: root/kdecore/tests/ksimpleconfigtest.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
commite16866e072f94410321d70daedbcb855ea878cac (patch)
treeee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /kdecore/tests/ksimpleconfigtest.cpp
parenta58c20c1a7593631a1b50213c805507ebc16adaf (diff)
downloadtdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz
tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'kdecore/tests/ksimpleconfigtest.cpp')
-rw-r--r--kdecore/tests/ksimpleconfigtest.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/kdecore/tests/ksimpleconfigtest.cpp b/kdecore/tests/ksimpleconfigtest.cpp
deleted file mode 100644
index 6aa93c06d..000000000
--- a/kdecore/tests/ksimpleconfigtest.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-// $Id$
-
-//
-// configtest.cpp: libKDEcore example
-//
-// demonstrates use of KSimpleConfig class
-
-#include <ksimpleconfig.h>
-#include <kapplication.h>
-#include <unistd.h>
-#include <stdio.h>
-
-#ifdef HAVE_PATHS_H
-#include <paths.h>
-#endif
-
-#ifndef _PATH_TMP
-#define _PATH_TMP "/tmp/"
-#endif
-
-int main( int argc, char **argv )
-{
- KApplication a( argc, argv, "kconfigtest" );
-
- KSimpleConfig aConfig( _PATH_TMP"/simpleconfig.cfg" );
-
- aConfig.setGroup( "Test group" );
- aConfig.writeEntry( "key1", "value1" );
- aConfig.writeEntry( "key2", "value2" );
-
- aConfig.setGroup( "Another Test group" );
- aConfig.writeEntry( "akey1", "avalue1" );
- aConfig.writeEntry( "akey2", "avalue2" );
-
- fprintf( stderr, "entries written, sleeping for 10 seconds\n" );
- aConfig.sync();
- sleep( 10 );
-
- aConfig.setGroup( "Test group" );
- aConfig.deleteEntry( "key2", false );
- fprintf( stderr, "Deleted on entry from Test group, sleeping\n" );
- aConfig.sync();
- sleep( 10 );
-
- aConfig.deleteGroup( "Another Test group", true );
- fprintf( stderr, "Deleted Another Test group\n" );
-}
-