summaryrefslogtreecommitdiff
path: root/fbdaemon
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-11-21 10:23:31 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-11-21 10:23:31 (GMT)
commited4a9d6211f52c87082d3dcf0ba1e40e4a85b2f0 (patch)
treea05faf11fb7a847a46c8b4ade1eabd13e4aa04ef /fbdaemon
parentabe454cf2a055a84de7278df4c052a839bf4b109 (diff)
downloadkolab-utils-ed4a9d6211f52c87082d3dcf0ba1e40e4a85b2f0.tar.gz
Also create the Freebusy folder when aggregating only, although we don't write to it. This makes sure the annotation is added if missing.
Diffstat (limited to 'fbdaemon')
-rw-r--r--fbdaemon/fbaggregatorjob.cpp5
-rw-r--r--fbdaemon/fbaggregatorjob.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/fbdaemon/fbaggregatorjob.cpp b/fbdaemon/fbaggregatorjob.cpp
index a422da6..d9c306a 100644
--- a/fbdaemon/fbaggregatorjob.cpp
+++ b/fbdaemon/fbaggregatorjob.cpp
@@ -34,6 +34,11 @@ FBAggregatorJob::FBAggregatorJob(const QString& hostName, qint16 port, const QSt
}
+QStringList FBAggregatorJob::requiredFolders()
+{
+ return QStringList() << KOLAB_FOLDER_TYPE_FREEBUSY;
+}
+
void FBAggregatorJob::startWork(ProbeKolabServerJob* capabilitiesJob)
{
Debug() << "starting aggregator job for " << mUserName;
diff --git a/fbdaemon/fbaggregatorjob.h b/fbdaemon/fbaggregatorjob.h
index aa33749..f54be30 100644
--- a/fbdaemon/fbaggregatorjob.h
+++ b/fbdaemon/fbaggregatorjob.h
@@ -31,6 +31,10 @@ class FBAggregatorJob: public KolabJob
public:
explicit FBAggregatorJob(const QString &hostName, qint16 port, const QString &username, QObject* parent = 0);
QString generatedFile() const;
+
+protected:
+ virtual QStringList requiredFolders();
+
private Q_SLOTS:
void onFetchFBDone(KJob *job);
// void onGenerateFBDone(KJob*);