~ubuntu-branches/debian/sid/kmess/sid

« back to all changes in this revision

Viewing changes to src/notification/contactstatusnotification.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-05-26 22:58:41 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090526225841-yx7029u4euscd0f5
Tags: 2.0~beta2-1
* New upstream release 
  - Fixes "the '">' characters appears" (Closes: #530358)
* Add Build-Depends: libgif-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
 
86
86
// Obtains a status string like "contact has come online" for a MSN status code
87
 
QString ContactStatusNotification::getStatusString( const Status status, const QString& friendlyName ) const
 
87
const QString ContactStatusNotification::getStatusString( const Status status, const QString& friendlyName ) const
88
88
{
89
89
  switch( status )
90
90
  {
114
114
    return;
115
115
  }
116
116
 
117
 
  // If notification for this event is disabled, don't show a balloon.
118
 
  if( ! isNeeded )
 
117
  // If notification for this event is disabled
 
118
  // or the user decided to don't show the notification about this contact
 
119
  // don't show a balloon.
 
120
  if( ! isNeeded || contact->getExtension()->getDisableNotifications() )
119
121
  {
120
122
#ifdef KMESSDEBUG_CONTACTSTATUSNOTIFICATION
121
123
    kDebug() << "Not needed, skipping.";
124
126
  }
125
127
 
126
128
 
127
 
  QString friendlyName( contact->getFriendlyName( STRING_LIST_SETTING_ESCAPED ) );
 
129
  const QString& friendlyName( contact->getFriendlyName( STRING_LIST_SETTING_ESCAPED ) );
128
130
  QString text;
129
131
  Status  status = contact->getStatus();
130
132
  Status  lastStatus = contact->getLastStatus();
179
181
  }
180
182
 
181
183
  // Associate the list events with the contact list window
182
 
  KMessApplication *kmessApp = static_cast<KMessApplication*>( kapp );
 
184
  const KMessApplication *kmessApp = static_cast<KMessApplication*>( kapp );
183
185
  QWidget *mainWindow = kmessApp->getContactListWindow()->window();
184
186
 
185
187
  NotificationManager::EventSettings settings;