Changeset View
Changeset View
Standalone View
Standalone View
drkonqi/bugreportaddress.h
Show All 20 Lines | |||||
21 | 21 | | |||
22 | #include "drkonqi_globals.h" | 22 | #include "drkonqi_globals.h" | ||
23 | 23 | | |||
24 | class BugReportAddress : public QString | 24 | class BugReportAddress : public QString | ||
25 | { | 25 | { | ||
26 | public: | 26 | public: | ||
27 | inline BugReportAddress() : QString() {} | 27 | inline BugReportAddress() : QString() {} | ||
28 | inline BugReportAddress(const QString & address) | 28 | inline BugReportAddress(const QString & address) | ||
29 | : QString(address == QLatin1String("submit@bugs.kde.org") ? | 29 | : QString(address == QLatin1String("submit@bugs.kde.org") ? KDE_BUGZILLA_URL : address) | ||
30 | QLatin1String(KDE_BUGZILLA_URL) : address) | | |||
31 | {} | 30 | {} | ||
32 | 31 | | |||
33 | inline bool isKdeBugzilla() const | 32 | inline bool isKdeBugzilla() const | ||
34 | { | 33 | { | ||
35 | return *this == QLatin1String(KDE_BUGZILLA_URL); | 34 | return *this == KDE_BUGZILLA_URL; | ||
36 | } | 35 | } | ||
37 | 36 | | |||
38 | inline bool isEmail() const | 37 | inline bool isEmail() const | ||
39 | { | 38 | { | ||
40 | return contains('@'); | 39 | return contains('@'); | ||
41 | } | 40 | } | ||
42 | }; | 41 | }; | ||
43 | 42 | | |||
44 | #endif | 43 | #endif |