KCalCore Library
Go to the documentation of this file.
32 #include <config-kcalcore.h>
36 #if defined(HAVE_UUID_UUID_H)
37 #include <uuid/uuid.h>
40 #include <QtCore/QDateTime>
43 using namespace KCalCore;
50 class KCalCore::CalFormat::Private
53 Private() : mException(0) {}
57 static QString mApplication;
58 static QString mProductId;
59 QString mLoadedProductId;
63 QString CalFormat::Private::mApplication = QLatin1String(
"libkcal");
64 QString CalFormat::Private::mProductId =
65 QLatin1String(
"-//K Desktop Environment//NONSGML libkcal 4.3//EN");
97 const QString &productID)
100 Private::mProductId = productID;
105 return Private::mApplication;
110 return Private::mProductId;
115 return d->mLoadedProductId;
120 d->mLoadedProductId = id;
125 #if defined(HAVE_UUID_UUID_H)
129 uuid_generate_random(uuid);
130 uuid_unparse(uuid, suuid);
131 return QString(suuid);
133 int hashTime = QTime::currentTime().hour() +
134 QTime::currentTime().minute() + QTime::currentTime().second() +
135 QTime::currentTime().msec();
136 QString uidStr = QString(
"%1-%2.%3").
137 arg(Private::mApplication).
138 arg(KRandom::random()).
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Fri Jan 17 2014 22:11:59 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.