diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-29 00:45:29 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-29 00:45:29 +0000 |
| commit | e8c5724f1ecc002e43352a51f540575232f5a1c8 (patch) | |
| tree | f2ef4970b3d5ef4b1c51d03805922f79c9b0d268 /src/server/mod_stats.cpp | |
| parent | 5ae2c7f2cc953fca118336f997a043c0add7b40c (diff) | |
| download | qxmpp-e8c5724f1ecc002e43352a51f540575232f5a1c8.tar.gz | |
rename module parameters
Diffstat (limited to 'src/server/mod_stats.cpp')
| -rw-r--r-- | src/server/mod_stats.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/mod_stats.cpp b/src/server/mod_stats.cpp index 4904e177..d7855667 100644 --- a/src/server/mod_stats.cpp +++ b/src/server/mod_stats.cpp @@ -126,26 +126,26 @@ QXmppServerStats::~QXmppServerStats() /// Returns the path of the file to which the statistics are written. /// -QString QXmppServerStats::statisticsFile() const +QString QXmppServerStats::file() const { return d->statisticsFile; } /// Sets the path of the file to which the statistics are written. /// -/// \param statisticsFile +/// \param file -void QXmppServerStats::setStatisticsFile(const QString &statisticsFile) +void QXmppServerStats::setFile(const QString &file) { if (d->statistics) { delete d->statistics; d->statistics = 0; } - d->statisticsFile = statisticsFile; - if (!statisticsFile.isEmpty()) + d->statisticsFile = file; + if (!file.isEmpty()) { - d->statistics = new QSettings(statisticsFile, QSettings::IniFormat, this); + d->statistics = new QSettings(file, QSettings::IniFormat, this); readStatistics(); writeStatistics(); } |
