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 ) {}
54 ~Private() {
delete mException; }
55 static QString mApplication;
56 static QString mProductId;
57 QString mLoadedProductId;
61 QString CalFormat::Private::mApplication = QLatin1String(
"libkcal" );
62 QString CalFormat::Private::mProductId =
63 QLatin1String(
"-//K Desktop Environment//NONSGML libkcal 4.3//EN" );
95 const QString &productID )
98 Private::mProductId = productID;
103 return Private::mApplication;
108 return Private::mProductId;
113 return d->mLoadedProductId;
118 d->mLoadedProductId = id;
123 #if defined(HAVE_UUID_UUID_H)
127 uuid_generate_random( uuid );
128 uuid_unparse( uuid, suuid );
129 return QString( suuid );
131 int hashTime = QTime::currentTime().hour() +
132 QTime::currentTime().minute() + QTime::currentTime().second() +
133 QTime::currentTime().msec();
134 QString uidStr = QString(
"%1-%2.%3" ).
135 arg( Private::mApplication ).
136 arg( KRandom::random() ).
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:24:51 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.