add more spacing
[personal-kdebase.git] / runtime / kwalletd / tests / kwalletpath.cpp
blob9b62a420f64c6299f013b73217c599c8d33aeef0
1 #include <QtCore/QTextStream>
2 #include <QtCore/QTimer>
4 #include <kaboutdata.h>
5 #include <kapplication.h>
6 #include <kcmdlineargs.h>
7 #include <kdebug.h>
8 #include <kglobal.h>
9 #include <kstandarddirs.h>
10 #include <kwallet.h>
11 #include <QtDBus/QDBusConnectionInterface>
12 #include <QtDBus/QDBusConnection>
13 #include <QtDBus/QDBusReply>
15 static QTextStream _out(stdout, QIODevice::WriteOnly);
17 void openWallet()
19 _out << "About to ask for wallet /tmp/test.kwl sync" << endl;
21 KWallet::Wallet *wallet = KWallet::Wallet::openWallet("/tmp/test.kwl", 0, KWallet::Wallet::Path);
23 _out << "Got path wallet: " << (wallet != 0) << endl;
25 if (wallet) {
26 _out << "Closing wallet" << endl;
27 delete wallet;
30 kapp->exit(0);
33 int main(int argc, char *argv[])
35 KAboutData aboutData("kwalletpath", 0, ki18n("kwalletpath"), "version");
36 KCmdLineArgs::init(argc, argv, &aboutData);
37 KApplication app;
39 openWallet();
41 exit(0);