author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /libkcal/customproperties.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | libkcal/customproperties.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/libkcal/customproperties.h b/libkcal/customproperties.h index 0cbfdcd..75eb3ad 100644 --- a/libkcal/customproperties.h +++ b/libkcal/customproperties.h | |||
@@ -23,6 +23,8 @@ | |||
23 | 23 | ||
24 | #include <qstring.h> | 24 | #include <qstring.h> |
25 | #include <qmap.h> | 25 | #include <qmap.h> |
26 | //Added by qt3to4: | ||
27 | #include <Q3CString> | ||
26 | 28 | ||
27 | namespace KCal { | 29 | namespace KCal { |
28 | 30 | ||
@@ -49,47 +51,47 @@ class CustomProperties | |||
49 | @param value The property's value. A call with a value of QString::null | 51 | @param value The property's value. A call with a value of QString::null |
50 | will be ignored. | 52 | will be ignored. |
51 | */ | 53 | */ |
52 | void setCustomProperty(const QCString &app, const QCString &key, | 54 | void setCustomProperty(const Q3CString &app, const Q3CString &key, |
53 | const QString &value); | 55 | const QString &value); |
54 | /** Delete a custom calendar property. | 56 | /** Delete a custom calendar property. |
55 | @param app Application name as it appears in the custom property name. | 57 | @param app Application name as it appears in the custom property name. |
56 | @param key Property identifier specific to the application. | 58 | @param key Property identifier specific to the application. |
57 | */ | 59 | */ |
58 | void removeCustomProperty(const QCString &app, const QCString &key); | 60 | void removeCustomProperty(const Q3CString &app, const Q3CString &key); |
59 | /** Return the value of a custom calendar property. | 61 | /** Return the value of a custom calendar property. |
60 | @param app Application name as it appears in the custom property name. | 62 | @param app Application name as it appears in the custom property name. |
61 | @param key Property identifier specific to the application. | 63 | @param key Property identifier specific to the application. |
62 | @return Property value, or QString::null if (and only if) the property does not exist. | 64 | @return Property value, or QString::null if (and only if) the property does not exist. |
63 | */ | 65 | */ |
64 | QString customProperty(const QCString &app, const QCString &key) const; | 66 | QString customProperty(const Q3CString &app, const Q3CString &key) const; |
65 | 67 | ||
66 | /** Create or modify a non-KDE or non-standard custom calendar property. | 68 | /** Create or modify a non-KDE or non-standard custom calendar property. |
67 | @param name Full property name | 69 | @param name Full property name |
68 | @param value The property's value. A call with a value of QString::null | 70 | @param value The property's value. A call with a value of QString::null |
69 | will be ignored. | 71 | will be ignored. |
70 | */ | 72 | */ |
71 | void setNonKDECustomProperty(const QCString &name, const QString &value); | 73 | void setNonKDECustomProperty(const Q3CString &name, const QString &value); |
72 | /** Delete a non-KDE or non-standard custom calendar property. | 74 | /** Delete a non-KDE or non-standard custom calendar property. |
73 | @param name Full property name | 75 | @param name Full property name |
74 | */ | 76 | */ |
75 | void removeNonKDECustomProperty(const QCString &name); | 77 | void removeNonKDECustomProperty(const Q3CString &name); |
76 | /** Return the value of a non-KDE or non-standard custom calendar property. | 78 | /** Return the value of a non-KDE or non-standard custom calendar property. |
77 | @param name Full property name | 79 | @param name Full property name |
78 | @return Property value, or QString::null if (and only if) the property does not exist. | 80 | @return Property value, or QString::null if (and only if) the property does not exist. |
79 | */ | 81 | */ |
80 | QString nonKDECustomProperty(const QCString& name) const; | 82 | QString nonKDECustomProperty(const Q3CString& name) const; |
81 | 83 | ||
82 | /** Initialise the alarm's custom calendar properties to the specified | 84 | /** Initialise the alarm's custom calendar properties to the specified |
83 | key/value pairs. | 85 | key/value pairs. |
84 | */ | 86 | */ |
85 | void setCustomProperties(const QMap<QCString, QString> &properties); | 87 | void setCustomProperties(const QMap<Q3CString, QString> &properties); |
86 | /** Return all custom calendar property key/value pairs. */ | 88 | /** Return all custom calendar property key/value pairs. */ |
87 | QMap<QCString, QString> customProperties() const; | 89 | QMap<Q3CString, QString> customProperties() const; |
88 | 90 | ||
89 | private: | 91 | private: |
90 | static bool checkName(const QCString& name); | 92 | static bool checkName(const Q3CString& name); |
91 | 93 | ||
92 | QMap<QCString, QString> mProperties; // custom calendar properties | 94 | QMap<Q3CString, QString> mProperties; // custom calendar properties |
93 | }; | 95 | }; |
94 | 96 | ||
95 | } | 97 | } |