~ubuntu-branches/ubuntu/trusty/sflphone/trusty

« back to all changes in this revision

Viewing changes to kde/src/actionsetaccountfirst.cpp

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (4.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20140128182336-jrsv0k9u6cawc068
Tags: 1.3.0-1
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2009-2013 by Savoir-Faire Linux                         *
3
 
 *   Author : Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>         *
4
 
 *            Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>*
5
 
 *                                                                         *
6
 
 *   This program is free software; you can redistribute it and/or modify  *
7
 
 *   it under the terms of the GNU General Public License as published by  *
8
 
 *   the Free Software Foundation; either version 3 of the License, or     *
9
 
 *   (at your option) any later version.                                   *
10
 
 *                                                                         *
11
 
 *   This program is distributed in the hope that it will be useful,       *
12
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14
 
 *   GNU General Public License for more details.                          *
15
 
 *                                                                         *
16
 
 *   You should have received a copy of the GNU General Public License     *
17
 
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
18
 
 **************************************************************************/
19
 
 
20
 
//Parent
21
 
#include "actionsetaccountfirst.h"
22
 
 
23
 
//KDE
24
 
#include <KLocale>
25
 
 
26
 
///Constrctor
27
 
ActionSetAccountFirst::ActionSetAccountFirst(Account* account, QObject *parent)
28
 
 : QAction((account == nullptr) ? i18n("Default account") : account->getAlias(), parent)
29
 
{
30
 
   setCheckable(true);
31
 
   this->account = account;
32
 
   connect(this,    SIGNAL(triggered()), this,    SLOT(emitSetFirst()));
33
 
}
34
 
 
35
 
///Destructor
36
 
ActionSetAccountFirst::~ActionSetAccountFirst()
37
 
{
38
 
}
39
 
 
40
 
///
41
 
void ActionSetAccountFirst::emitSetFirst()
42
 
{
43
 
   emit setFirst(account);
44
 
}