renamed some vars

This commit is contained in:
Patrick von Reth 2012-01-26 02:05:15 +01:00
parent 3b15f77941
commit 9c218b29fc
1 changed files with 20 additions and 20 deletions

View File

@ -19,19 +19,19 @@ namespace Snore{
Application::Application (const QString &name, const SnoreIcon &icon) : Application::Application (const QString &name, const SnoreIcon &icon) :
_name ( name ), m_name ( name ),
_icon(icon), m_icon(icon),
_initialized ( false ) m_initialized ( false )
{ {
} }
Application::Application() : Application::Application() :
_name ( "Error: Uninitialized Application" ) m_name ( "Error: Uninitialized Application" )
{} {}
Application::~Application() Application::~Application()
{ {
foreach ( Alert *a,_alerts ) foreach ( Alert *a,m_alerts )
{ {
a->deleteLater(); a->deleteLater();
} }
@ -39,64 +39,64 @@ Application::~Application()
void Application::addAlert ( Alert *alert ) void Application::addAlert ( Alert *alert )
{ {
_alerts.insert ( alert->name(),alert ); m_alerts.insert ( alert->name(),alert );
} }
const QString &Application::name() const const QString &Application::name() const
{ {
return _name; return m_name;
} }
const SnoreIcon &Application::icon()const const SnoreIcon &Application::icon()const
{ {
return _icon; return m_icon;
} }
const AlertList &Application::alerts() const const AlertList &Application::alerts() const
{ {
return _alerts; return m_alerts;
} }
bool Application::isInitialized() bool Application::isInitialized()
{ {
return _initialized; return m_initialized;
} }
void Application::setInitialized ( bool b ) void Application::setInitialized ( bool b )
{ {
_initialized = b; m_initialized = b;
} }
Alert::Alert (const QString &name, const QString &title, const SnoreIcon &icon, bool active) : Alert::Alert (const QString &name, const QString &title, const SnoreIcon &icon, bool active) :
_name ( name ), m_name ( name ),
_title ( title ), m_title ( title ),
_icon(icon), m_icon(icon),
_active ( active ) m_active ( active )
{} {}
Alert::Alert() : Alert::Alert() :
_active ( false ) m_active ( false )
{} {}
const QString &Alert::name() const const QString &Alert::name() const
{ {
return _name; return m_name;
} }
const QString &Alert::title() const const QString &Alert::title() const
{ {
return _title; return m_title;
} }
const SnoreIcon &Alert::icon() const const SnoreIcon &Alert::icon() const
{ {
return _icon; return m_icon;
} }
bool Alert::isActive() const bool Alert::isActive() const
{ {
return _active; return m_active;
} }
} }