Changeset View
Changeset View
Standalone View
Standalone View
src/calformat.cpp
Show All 28 Lines | 21 | /** | |||
---|---|---|---|---|---|
29 | @author Cornelius Schumacher \<schumacher@kde.org\> | 29 | @author Cornelius Schumacher \<schumacher@kde.org\> | ||
30 | */ | 30 | */ | ||
31 | 31 | | |||
32 | #include "calformat.h" | 32 | #include "calformat.h" | ||
33 | #include "exceptions.h" | 33 | #include "exceptions.h" | ||
34 | 34 | | |||
35 | #include <QUuid> | 35 | #include <QUuid> | ||
36 | 36 | | |||
37 | using namespace KCalCore; | 37 | using namespace KCalendarCore; | ||
38 | 38 | | |||
39 | /** | 39 | /** | ||
40 | Private class that helps to provide binary compatibility between releases. | 40 | Private class that helps to provide binary compatibility between releases. | ||
41 | @internal | 41 | @internal | ||
42 | */ | 42 | */ | ||
43 | //@cond PRIVATE | 43 | //@cond PRIVATE | ||
44 | class Q_DECL_HIDDEN KCalCore::CalFormat::Private | 44 | class Q_DECL_HIDDEN KCalendarCore::CalFormat::Private | ||
45 | { | 45 | { | ||
46 | public: | 46 | public: | ||
47 | Private() {} | 47 | Private() {} | ||
48 | ~Private() | 48 | ~Private() | ||
49 | { | 49 | { | ||
50 | delete mException; | 50 | delete mException; | ||
51 | } | 51 | } | ||
52 | static QString mApplication; // Name of application, for creating unique ID strings | 52 | static QString mApplication; // Name of application, for creating unique ID strings | ||
53 | static QString mProductId; // PRODID string to write to calendar files | 53 | static QString mProductId; // PRODID string to write to calendar files | ||
54 | QString mLoadedProductId; // PRODID string loaded from calendar file | 54 | QString mLoadedProductId; // PRODID string loaded from calendar file | ||
55 | Exception *mException = nullptr; | 55 | Exception *mException = nullptr; | ||
56 | }; | 56 | }; | ||
57 | 57 | | |||
58 | QString CalFormat::Private::mApplication = QStringLiteral("libkcal"); | 58 | QString CalFormat::Private::mApplication = QStringLiteral("libkcal"); | ||
59 | QString CalFormat::Private::mProductId = | 59 | QString CalFormat::Private::mProductId = | ||
60 | QStringLiteral("-//K Desktop Environment//NONSGML libkcal 4.3//EN"); | 60 | QStringLiteral("-//K Desktop Environment//NONSGML libkcal 4.3//EN"); | ||
61 | //@endcond | 61 | //@endcond | ||
62 | 62 | | |||
63 | CalFormat::CalFormat() | 63 | CalFormat::CalFormat() | ||
64 | : d(new KCalCore::CalFormat::Private) | 64 | : d(new KCalendarCore::CalFormat::Private) | ||
65 | { | 65 | { | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | CalFormat::~CalFormat() | 68 | CalFormat::~CalFormat() | ||
69 | { | 69 | { | ||
70 | clearException(); | 70 | clearException(); | ||
71 | delete d; | 71 | delete d; | ||
72 | } | 72 | } | ||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |