Warning, file /plasma/drkonqi/src/bugreportaddress.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2009 George Kiagiadakis <gkiagia@users.sourceforge.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef BUGREPORTADDRESS_H 0007 #define BUGREPORTADDRESS_H 0008 0009 #include <QString> 0010 0011 #include "drkonqi_globals.h" 0012 0013 class BugReportAddress : public QString 0014 { 0015 public: 0016 inline BugReportAddress() 0017 : QString() 0018 { 0019 } 0020 inline BugReportAddress(const QString &address) 0021 : QString(address == QLatin1String("submit@bugs.kde.org") ? KDE_BUGZILLA_URL : address) 0022 { 0023 } 0024 0025 inline bool isKdeBugzilla() const 0026 { 0027 return *this == KDE_BUGZILLA_URL; 0028 } 0029 0030 inline bool isEmail() const 0031 { 0032 return contains(QLatin1Char('@')); 0033 } 0034 }; 0035 0036 #endif