diff --git a/lib/adium-theme-status-info.cpp b/lib/adium-theme-status-info.cpp index 7ab7513..120bd2e 100644 --- a/lib/adium-theme-status-info.cpp +++ b/lib/adium-theme-status-info.cpp @@ -1,64 +1,64 @@ /*************************************************************************** * Copyright (C) 2011 by David Edmundson * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ #include "adium-theme-status-info.h" #include class AdiumThemeStatusInfoPrivate { public: QString status; }; -AdiumThemeStatusInfo::AdiumThemeStatusInfo(bool isHistory) - : AdiumThemeMessageInfo(isHistory ? AdiumThemeMessageInfo::HistoryStatus : AdiumThemeMessageInfo::Status), +AdiumThemeStatusInfo::AdiumThemeStatusInfo(uint type) + : AdiumThemeMessageInfo(type ? AdiumThemeMessageInfo::HistoryStatus : AdiumThemeMessageInfo::Status), d(new AdiumThemeStatusInfoPrivate) { } AdiumThemeStatusInfo::AdiumThemeStatusInfo(const AdiumThemeStatusInfo &other) : AdiumThemeMessageInfo(other), d(new AdiumThemeStatusInfoPrivate(*other.d)) { } AdiumThemeStatusInfo::~AdiumThemeStatusInfo() { delete d; } AdiumThemeStatusInfo& AdiumThemeStatusInfo::operator=(const AdiumThemeStatusInfo& other) { AdiumThemeMessageInfo::operator =(other); *d = *other.d; return *this; } QString AdiumThemeStatusInfo::status() const { return d->status; } void AdiumThemeStatusInfo::setStatus(const QString& status) { d->status = status; } diff --git a/lib/adium-theme-status-info.h b/lib/adium-theme-status-info.h index 1cafbe5..5de8e90 100644 --- a/lib/adium-theme-status-info.h +++ b/lib/adium-theme-status-info.h @@ -1,47 +1,47 @@ /*************************************************************************** * Copyright (C) 2011 by David Edmundson * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ #ifndef ADIUMTHEMESTATUSINFO_H #define ADIUMTHEMESTATUSINFO_H #include "adium-theme-message-info.h" #include "ktpchat_export.h" class QString; class AdiumThemeStatusInfoPrivate; class KDE_TELEPATHY_CHAT_EXPORT AdiumThemeStatusInfo : public AdiumThemeMessageInfo { public: - explicit AdiumThemeStatusInfo(bool isHistory = false); + explicit AdiumThemeStatusInfo(uint type = 0); explicit AdiumThemeStatusInfo(const AdiumThemeStatusInfo &other); virtual ~AdiumThemeStatusInfo(); AdiumThemeStatusInfo &operator=(const AdiumThemeStatusInfo &other); /** A description of the status event. This is neither in * the user's local language nor expected to be displayed */ QString status() const; void setStatus(const QString& status); private: AdiumThemeStatusInfoPrivate *d; }; #endif // ADIUMTHEMESTATUSINFO_H