diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-23 12:29:38 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-23 12:29:38 +0000 |
| commit | 3c28b4d2b8b6162bb6d8ea557efd4a68970f1366 (patch) | |
| tree | cd065b1886d2ae76674274786506dffca301edda /examples/GuiClient | |
| parent | 1890eefda81e30d06b20bcca45a76df81fa0f983 (diff) | |
| download | qxmpp-3c28b4d2b8b6162bb6d8ea557efd4a68970f1366.tar.gz | |
impl saveToFile
Diffstat (limited to 'examples/GuiClient')
| -rw-r--r-- | examples/GuiClient/accountsCache.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/GuiClient/accountsCache.cpp b/examples/GuiClient/accountsCache.cpp index 9f92c72d..3a31ad19 100644 --- a/examples/GuiClient/accountsCache.cpp +++ b/examples/GuiClient/accountsCache.cpp @@ -66,6 +66,16 @@ void accountsCache::addAccount(const QString& bareJid, const QString& passwd) void accountsCache::loadFromFile()
{
+ QDir dirSettings(getSettingsDir());
+ if(dirSettings.exists())
+ {
+ QFile file(getSettingsDir()+ "accounts.xml");
+ if(file.open(QIODevice::ReadOnly))
+ {
+ QDomDocument doc;
+ doc.setContent(&file, true);
+ }
+ }
}
void accountsCache::saveToFile()
|
