diff --git a/sflphone-qt/Account.cpp b/sflphone-qt/Account.cpp deleted file mode 100644 index 3cda653a1e60e23fd0902b49defd727cfbce19cc..0000000000000000000000000000000000000000 --- a/sflphone-qt/Account.cpp +++ /dev/null @@ -1,181 +0,0 @@ -#include "Account.h" -#include "sflphone_const.h" -#include "daemon_interface_singleton.h" - -#include <iostream> - -using namespace std; - -const QString account_state_name(QString & s) -{ - if(s == QString(ACCOUNT_STATE_REGISTERED)) - return QApplication::translate("ConfigurationDialog", "Registered", 0, QApplication::UnicodeUTF8); - if(s == QString(ACCOUNT_STATE_UNREGISTERED)) - return QApplication::translate("ConfigurationDialog", "Not Registered", 0, QApplication::UnicodeUTF8); - if(s == QString(ACCOUNT_STATE_TRYING)) - return QApplication::translate("ConfigurationDialog", "Trying...", 0, QApplication::UnicodeUTF8); - if(s == QString(ACCOUNT_STATE_ERROR)) - return QApplication::translate("ConfigurationDialog", "Error", 0, QApplication::UnicodeUTF8); - if(s == QString(ACCOUNT_STATE_ERROR_AUTH)) - return QApplication::translate("ConfigurationDialog", "Bad authentification", 0, QApplication::UnicodeUTF8); - if(s == QString(ACCOUNT_STATE_ERROR_NETWORK)) - return QApplication::translate("ConfigurationDialog", "Network unreachable", 0, QApplication::UnicodeUTF8); - if(s == QString(ACCOUNT_STATE_ERROR_HOST)) - return QApplication::translate("ConfigurationDialog", "Host unreachable", 0, QApplication::UnicodeUTF8); - if(s == QString(ACCOUNT_STATE_ERROR_CONF_STUN)) - return QApplication::translate("ConfigurationDialog", "Stun configuration error", 0, QApplication::UnicodeUTF8); - if(s == QString(ACCOUNT_STATE_ERROR_EXIST_STUN)) - return QApplication::translate("ConfigurationDialog", "Stun server invalid", 0, QApplication::UnicodeUTF8); - return QApplication::translate("ConfigurationDialog", "Invalid", 0, QApplication::UnicodeUTF8); -} - -//Constructors - - Account::Account():accountId(NULL){} - -/* -Account::Account(QListWidgetItem & _item, QString & alias) -{ - accountDetails = new MapStringString(); - (*accountDetails)[ACCOUNT_ALIAS] = alias; - item = & _item; -} - -Account::Account(QString & _accountId, MapStringString & _accountDetails, account_state_t & _state) -{ - *accountDetails = _accountDetails; - *accountId = _accountId; - *state = _state; -} -*/ - -void Account::initAccountItem() -{ - item = new QListWidgetItem(); - item->setFlags(Qt::ItemIsSelectable|Qt::ItemIsDragEnabled|Qt::ItemIsDropEnabled|Qt::ItemIsUserCheckable|Qt::ItemIsEnabled); - cout << getAccountDetail(*(new QString(ACCOUNT_ENABLED))).toStdString() << endl; - item->setCheckState((getAccountDetail(*(new QString(ACCOUNT_ENABLED))) == ACCOUNT_ENABLED_TRUE) ? Qt::Checked : Qt::Unchecked); - item->setText(getAccountDetail(*(new QString(ACCOUNT_ALIAS)))); -} - -Account * Account::buildExistingAccountFromId(QString _accountId) -{ - Account * a = new Account(); - a->accountId = new QString(_accountId); - a->accountDetails = new MapStringString( DaemonInterfaceSingleton::getInstance().getAccountDetails(_accountId).value() ); - a->initAccountItem(); - if(a->item->checkState() == Qt::Checked) - if(a->getAccountDetail(* new QString(ACCOUNT_STATUS)) == ACCOUNT_STATE_REGISTERED) - a->item->setTextColor(Qt::darkGreen); - else - a->item->setTextColor(Qt::red); - return a; -} - -Account * Account::buildNewAccountFromAlias(QString alias) -{ - Account * a = new Account(); - a->accountDetails = new MapStringString(); - a->setAccountDetail(QString(ACCOUNT_ALIAS),alias); - a->initAccountItem(); - return a; -} - -Account::~Account() -{ - delete accountId; - delete accountDetails; - delete item; -} - -//Getters - -bool Account::isNew() -{ - qDebug() << accountId; - return(!accountId); -} - -QString & Account::getAccountId() -{ - return *accountId; -} - -MapStringString & Account::getAccountDetails() -{ - return *accountDetails; -} - -QListWidgetItem * Account::getItem() -{ - if(!item) - cout<<"null"<<endl; - return item; - -} - -QString Account::getStateName(QString & state) -{ - return account_state_name(state); -} - -QColor Account::getStateColor() -{ - if(item->checkState() == Qt::Checked) - { - if(getAccountDetail(* new QString(ACCOUNT_STATUS)) == ACCOUNT_STATE_REGISTERED) - return Qt::darkGreen; - return Qt::red; - } - return Qt::black; -} - - -QString Account::getStateColorName() -{ - if(item->checkState() == Qt::Checked) - { - if(getAccountDetail(* new QString(ACCOUNT_STATUS)) == ACCOUNT_STATE_REGISTERED) - return "darkGreen"; - return "red"; - } - return "black"; -} - -QString Account::getAccountDetail(QString & param) -{ - return (*accountDetails)[param]; -} -/* -QString Account::getAccountDetail(std::string param) -{ - return (*accountDetails)[QString(param)]; -} -*/ -//Setters -/* -void Account::setAccountId(QString id) -{ - accountId = id; -} -*/ -void Account::setAccountDetails(MapStringString m) -{ - *accountDetails = m; -} -/* -void Account::setState(account_state_t s) -{ - -} -*/ -void Account::setAccountDetail(QString param, QString val) -{ - (*accountDetails)[param] = val; -} - -//Operators -bool Account::operator==(const Account& a)const -{ - return *accountId == *a.accountId; -} diff --git a/sflphone-qt/Account.h b/sflphone-qt/Account.h deleted file mode 100644 index 133cff985ad361474d1b69c78e4ce1fd6aeb4666..0000000000000000000000000000000000000000 --- a/sflphone-qt/Account.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef HEADER_ACCOUNT -#define HEADER_ACCOUNT - -#include <QtGui> -#include "metatypes.h" - -const QString account_state_name(QString & s); - -class Account{ - -private: - - QString * accountId; - MapStringString * accountDetails; - QListWidgetItem * item; - - Account(); - -public: - - //Constructors - static Account * buildExistingAccountFromId(QString _accountId); - static Account * buildNewAccountFromAlias(QString alias); - - ~Account(); - - //Getters - bool isNew(); - QString & getAccountId(); - MapStringString & getAccountDetails(); - QListWidgetItem * getItem(); - QString getStateName(QString & state); - QColor getStateColor(); - QString getStateColorName(); - QString getAccountDetail(QString & param); - //QString getAccountDetail(std::string param); - - //Setters - void initAccountItem(); - void setAccountId(QString id); - void setAccountDetails(MapStringString m); - //void setState(account_state_t s); - void setAccountDetail(QString param, QString val); - - //Operators - bool operator==(const Account&)const; - -}; - - - -#endif \ No newline at end of file diff --git a/sflphone-qt/AccountList.cpp b/sflphone-qt/AccountList.cpp deleted file mode 100644 index 38d6ec2f34e9e3a95f66905b3acf62e6aa55802b..0000000000000000000000000000000000000000 --- a/sflphone-qt/AccountList.cpp +++ /dev/null @@ -1,106 +0,0 @@ -#include "AccountList.h" -#include "sflphone_const.h" - - -//Constructors -/* -AccountList::AccountList(VectorString & _accountIds) -{ - accounts = new QVector<Account *>(1); - (*accounts) += new Account(*(new QListWidgetItem()), "alias"); - for (int i = 0; i < _accountIds.size(); ++i){ - (*accounts) += new Account(_accountIds[i]); - } -} -*/ -AccountList::AccountList(QStringList & _accountIds) -{ - accounts = new QVector<Account *>(); - for (int i = 0; i < _accountIds.size(); ++i){ - (*accounts) += Account::buildExistingAccountFromId(_accountIds[i]); - } -} - -AccountList::~AccountList() -{ - delete accounts; -} - -//Getters -QVector<Account *> & AccountList::getAccounts() -{ - return *accounts; -} - -Account * AccountList::getAccountById(QString & id) -{ - for (int i = 0; i < accounts->size(); ++i){ - if ((*accounts)[i]->getAccountId() == id) - return (*accounts)[i]; - } - return NULL; -} - -QVector<Account *> AccountList::getAccountByState(QString & state) -{ - QVector<Account *> v; - for (int i = 0; i < accounts->size(); ++i){ - if ((*accounts)[i]->getAccountDetail(*(new QString(ACCOUNT_STATUS))) == state) - v += (*accounts)[i]; - } - return v; - -} -/* -Account AccountList::getAccountByRow(int row) -{ - -} -*/ -Account * AccountList::getAccountByItem(QListWidgetItem * item) -{ - for (int i = 0; i < accounts->size(); ++i){ - if ( (*accounts)[i]->getItem() == item) - return (*accounts)[i]; - } - return NULL; -} - -int AccountList::size() -{ - return accounts->size(); -} - -//Setters -/* -void AccountList::addAccount(Account & account) -{ - accounts->add(account); -} -*/ -QListWidgetItem * AccountList::addAccount(QString & alias) -{ - Account * a = Account::buildNewAccountFromAlias(alias); - (*accounts) += a; - return a->getItem(); -} - -void AccountList::removeAccount(QListWidgetItem * item) -{ - if(!item) {qDebug() << "Attempting to remove an account from a NULL item."; return; } - - Account * a = getAccountByItem(item); - if(!a) {qDebug() << "Attempting to remove an unexisting account."; return; } - - accounts->remove(accounts->indexOf(a)); -} - -const Account & AccountList::operator[] (int i) const -{ - return *((*accounts)[i]); -} - -Account & AccountList::operator[] (int i) -{ - return *((*accounts)[i]); -} diff --git a/sflphone-qt/AccountList.h b/sflphone-qt/AccountList.h deleted file mode 100644 index 6420c7373241729f63557b1c3b36221ff7ee7ab6..0000000000000000000000000000000000000000 --- a/sflphone-qt/AccountList.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef HEADER_ACCOUNTLIST -#define HEADER_ACCOUNTLIST - -#include <QtGui> -#include "Account.h" - -class AccountList{ - -private: - - QVector<Account *> * accounts; - -public: - - //Constructors - //AccountList(VectorString & _accountIds); - AccountList(QStringList & _accountIds); - ~AccountList(); - - //Getters - QVector<Account *> & getAccounts(); - Account * getAccountById(QString & id); - QVector<Account *> getAccountByState(QString & state); - //Account * getAccountByRow(int row); - Account * getAccountByItem(QListWidgetItem * item); - int size(); - - //Setters - //void addAccount(Account & account); - QListWidgetItem * addAccount(QString & alias); - void removeAccount(QListWidgetItem * item); - - //Operators - Account & operator[] (int i); - const Account & operator[] (int i) const; -}; - - - - -#endif \ No newline at end of file diff --git a/sflphone-qt/CheckState.cpp b/sflphone-qt/CheckState.cpp deleted file mode 100644 index f681046c6239187f218cc3f2fe38343000f4e9d1..0000000000000000000000000000000000000000 --- a/sflphone-qt/CheckState.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "CheckState.h" - - -bool CheckState::operator== (const CheckState & other) -{ - return ( checked == other.checked ); -} - -ConfigurationDialog & CheckState::operator<< ( ConfigurationDialog & cd, const CheckState & c) -{ - if(inverted) - checkBox->setCheckState(checked ? Qt::Unchecked : Qt::Checked); - else - checkBox->setCheckState(checked ? Qt::Checked : Qt::Unchecked); - - -} - -DaemonInterface & CheckState::operator<< (DaemonInterface & d, const CheckState & c) -{ - -} - -ConfigurationDialog & CheckState::operator>> ( ConfigurationDialog & cd, CheckState & c) -{ - -} - -DaemonInterface & CheckState::operator>> ( DaemonInterface & d, CheckState & c) -{ - -} diff --git a/sflphone-qt/CheckState.h b/sflphone-qt/CheckState.h deleted file mode 100644 index 522c45d05fd26ea64dd2618b46df59d4ad1afd2b..0000000000000000000000000000000000000000 --- a/sflphone-qt/CheckState.h +++ /dev/null @@ -1,28 +0,0 @@ -class CheckState:public class IOption -{ - -private: - - void * (*getter()); - void * (*setter()); - bool checked; - QCheckBox * checkBox; - bool inverted; - -public: - - CheckState(void * (*_getter()), void * (*_setter()), bool _checked, QCheckBox * _checkBox, bool _inverted = false): - getter(_getter), setter(_setter), checked(_checked), checkBox(_checkBox), inverted(_inverted); - - virtual bool operator== (const CheckState & other); - - virtual ConfigurationDialog & operator<< ( ConfigurationDialog & cd, const CheckState & c); - - virtual DaemonInterface & operator<< (DaemonInterface & d, const CheckState & c); - - virtual ConfigurationDialog & operator>> ( ConfigurationDialog & cd, CheckState & c); - - virtual DaemonInterface & operator>> ( DaemonInterface & d, CheckState & c); - - -}; \ No newline at end of file diff --git a/sflphone-qt/ConfigDialog.cpp b/sflphone-qt/ConfigDialog.cpp deleted file mode 100644 index fbb2874787436c1e3ca27ec18966be4ce34c4bac..0000000000000000000000000000000000000000 --- a/sflphone-qt/ConfigDialog.cpp +++ /dev/null @@ -1,467 +0,0 @@ -#include <QtGui> -#include <QtCore> -#include <iostream> -#include <stdarg.h> -#include "sflphone_const.h" -#include "metatypes.h" -#include "ConfigDialog.h" -#include "daemon_interface_singleton.h" - -using namespace std; - -ConfigurationDialog::ConfigurationDialog(QDialog *parent) : QDialog(parent) -{ - //configuration qt designer - setupUi(this); - - //configuration complémentaire - errorWindow = new QErrorMessage(this); - codecPayloads = new MapStringString(); - horizontalSlider_Capacity->setMaximum(MAX_HISTORY_CAPACITY); - label_WarningSIP->setVisible(false); - - //TODO ajouter les items de l'interface audio ici avec les constantes - - //configuration dbus - registerCommTypes(); - //daemon = new DaemonInterface("org.sflphone.SFLphone", "/org/sflphone/SFLphone/ConfigurationManager", QDBusConnection::sessionBus(), this); - - - - - loadOptions(); -} - - -void ConfigurationDialog::loadOptions() -{ - DaemonInterface & daemon = DaemonInterfaceSingleton::getInstance(); - - //////////////////////// - ////General settings//// - //////////////////////// - - //Call history settings - spinBox_CapaciteHist->setValue(daemon.getMaxCalls()); - - //SIP port settings - int sipPort = daemon.getSipPort(); - if(sipPort<1025){ - spinBox_PortSIP->setMinimum(sipPort); - label_WarningSIP->setText("Attention : le port SIP doit être supérieur à 1024 !"); - label_WarningSIP->setVisible(true); - } - if(sipPort>65535){ - spinBox_PortSIP->setMaximum(sipPort); - label_WarningSIP->setText("Attention : le port SIP doit être inférieur à 65536 !"); - label_WarningSIP->setVisible(true); - } - spinBox_PortSIP->setValue(daemon.getSipPort()); - - //////////////////////// - ////Display settings//// - //////////////////////// - - //Notification settings - checkBox1_NotifAppels->setCheckState(daemon.getNotify() ? Qt::Checked : Qt::Unchecked); - checkBox2_NotifMessages->setCheckState(daemon.getMailNotify() ? Qt::Checked : Qt::Unchecked); - - //Window display settings - checkBox1_FenDemarrage->setCheckState(daemon.isStartHidden() ? Qt::Unchecked : Qt::Checked); - checkBox2_FenAppel->setCheckState(daemon.popupMode() ? Qt::Checked : Qt::Unchecked); - - ///////////////////////// - ////Accounts settings//// - ///////////////////////// - - loadAccountList(); - - //Stun settings - checkBoxStun->setCheckState(daemon.isStunEnabled() ? Qt::Checked : Qt::Unchecked); - lineEdit_Stun->setText(QString(daemon.getStunServer())); - - ////////////////////// - ////Audio settings//// - ////////////////////// - - //Audio Interface settings - comboBox_Interface->setCurrentIndex(daemon.getAudioManager()); - stackedWidget_ParametresSpecif->setCurrentIndex(daemon.getAudioManager()); - - //ringtones settings - checkBox_Sonneries->setCheckState(daemon.isRingtoneEnabled() ? Qt::Checked : Qt::Unchecked); - //TODO widget choix de sonnerie - //widget_nomSonnerie->setText(daemon.getRingtoneChoice()); - - //codecs settings - loadCodecs(); - - // - //alsa settings - comboBox1_GreffonAlsa->clear(); - QStringList pluginList = daemon.getOutputAudioPluginList(); - comboBox1_GreffonAlsa->addItems(pluginList); - comboBox1_GreffonAlsa->setCurrentIndex(comboBox1_GreffonAlsa->findText(daemon.getCurrentAudioOutputPlugin())); - - qDebug() << "avant daemon.getCurrentAudioDevicesIndex();"; - QStringList devices = daemon.getCurrentAudioDevicesIndex(); - qDebug() << "apres daemon.getCurrentAudioDevicesIndex();"; - - int inputDevice = devices[1].toInt(); - comboBox2_Entree->clear(); - QStringList inputDeviceList = daemon.getAudioInputDeviceList(); - comboBox2_Entree->addItems(inputDeviceList); - comboBox2_Entree->setCurrentIndex(inputDevice); - - int outputDevice = devices[0].toInt(); - comboBox3_Sortie->clear(); - QStringList outputDeviceList = daemon.getAudioOutputDeviceList(); - comboBox3_Sortie->addItems(inputDeviceList); - comboBox3_Sortie->setCurrentIndex(outputDevice); - - //pulseaudio settings - checkBox_ModifVolumeApps->setCheckState(daemon.getPulseAppVolumeControl() ? Qt::Checked : Qt::Unchecked); - - -} - - -void ConfigurationDialog::saveOptions() -{ - DaemonInterface & daemon = DaemonInterfaceSingleton::getInstance(); - - //////////////////////// - ////General settings//// - //////////////////////// - - //Call history settings - daemon.setMaxCalls(spinBox_CapaciteHist->value()); - - //SIP port settings - int sipPort = spinBox_PortSIP->value(); - - if(sipPort<1025){ - errorWindow->showMessage("Attention : le port SIP doit être supérieur à 1024 !"); - } - if(sipPort>65535){ - errorWindow->showMessage("Attention : le port SIP doit être inférieur à 65536 !"); - } - daemon.setSipPort(sipPort); - - //////////////////////// - ////Display settings//// - //////////////////////// - - //Notification settings - if(checkBox1_NotifAppels->checkState() != (daemon.getNotify() ? Qt::Checked : Qt::Unchecked)) daemon.setNotify(); - if(checkBox2_NotifMessages->checkState() != (daemon.getMailNotify() ? Qt::Checked : Qt::Unchecked)) daemon.setMailNotify(); - - //Window display settings - //WARNING états inversés - if(checkBox1_FenDemarrage->checkState() != (daemon.isStartHidden() ? Qt::Unchecked : Qt::Checked)) daemon.startHidden(); - if(checkBox2_FenAppel->checkState() != (daemon.popupMode() ? Qt::Checked : Qt::Unchecked)) daemon.switchPopupMode(); - - ///////////////////////// - ////Accounts settings//// - ///////////////////////// - - saveAccountList(); - - //Stun settings - if(checkBoxStun->checkState() != (daemon.isStunEnabled() ? Qt::Checked : Qt::Unchecked)) daemon.enableStun(); - daemon.setStunServer(lineEdit_Stun->text()); - - ////////////////////// - ////Audio settings//// - ////////////////////// - - //Audio Interface settings - qDebug() << "setting audio manager"; - int manager = comboBox_Interface->currentIndex(); - daemon.setAudioManager(manager); - - //ringtones settings - qDebug() << "setting ringtone options"; - if(checkBox_Sonneries->checkState() != (daemon.isRingtoneEnabled() ? Qt::Checked : Qt::Unchecked)) daemon.ringtoneEnabled(); - //TODO widget choix de sonnerie - //daemon.getRingtoneChoice(widget_nomSonnerie->text()); - - //codecs settings - qDebug() << "saving codecs"; - saveCodecs(); - - //alsa settings - if(manager == ALSA) - { - qDebug() << "setting alsa settings"; - daemon.setOutputAudioPlugin(comboBox1_GreffonAlsa->currentText()); - daemon.setAudioInputDevice(comboBox2_Entree->currentIndex()); - daemon.setAudioOutputDevice(comboBox3_Sortie->currentIndex()); - } - //pulseaudio settings - if(manager == PULSEAUDIO) - { - qDebug() << "setting pulseaudio settings"; - if(checkBox_ModifVolumeApps->checkState() != (daemon.getPulseAppVolumeControl() ? Qt::Checked : Qt::Unchecked)) daemon.setPulseAppVolumeControl(); - } -} - - -void ConfigurationDialog::loadAccountList() -{ - //ask for the list of accounts ids to the daemon - QDBusReply<QStringList> r = (DaemonInterfaceSingleton::getInstance().getAccountList()); - QStringList accountIds = r.value(); - //create the AccountList object with the ids - accountList = new AccountList(accountIds); - //initialize the QListWidget object with the AccountList - listWidgetComptes->clear(); - for (int i = 0; i < accountList->size(); ++i){ - listWidgetComptes->addItem((*accountList)[i].getItem()); - } - if (listWidgetComptes->count() > 0) - listWidgetComptes->setCurrentRow(0); - else - frame2_EditComptes->setEnabled(false); -} - -void ConfigurationDialog::saveAccountList() -{ - //save the account being edited - if(listWidgetComptes->currentItem()) - saveAccount(listWidgetComptes->currentItem()); - //get the daemon instance - DaemonInterface & daemon = DaemonInterfaceSingleton::getInstance(); - //ask for the list of accounts ids to the daemon - QStringList accountIds= QStringList(daemon.getAccountList().value()); - //create or update each account from accountList - for (int i = 0; i < accountList->size(); i++){ - Account & current = (*accountList)[i]; - QString currentId; - //if the account has no instanciated id, it has just been created in the client - if(current.isNew()) - { - currentId = QString(daemon.addAccount(current.getAccountDetails())); - } - //if the account has an instanciated id but it's not in daemon - else{ - if(! accountIds.contains(current.getAccountId())) - { - qDebug() << "The account with id " << current.getAccountId() << " doesn't exist. It might have been removed by another SFLPhone client."; - currentId = QString(""); - } - else - { - daemon.setAccountDetails(current.getAccountId(), current.getAccountDetails()); - currentId = QString(current.getAccountId()); - } - } - daemon.sendRegister(currentId, (current.getItem()->checkState() == Qt::Checked) ? 1 : 0 ); - } - //remove accounts that are in the daemon but not in the client - for (int i = 0; i < accountIds.size(); i++) - if(! accountList->getAccountById(accountIds[i])){ - qDebug() << "remove account " << accountIds[i]; - daemon.removeAccount(accountIds[i]); - } -} - -void ConfigurationDialog::loadAccount(QListWidgetItem * item) -{ - if(! item ) { qDebug() << "Attempting to load details of an account from a NULL item"; return; } - - Account * account = accountList->getAccountByItem(item); - if(! account ) { qDebug() << "Attempting to load details of an unexisting account"; return; } - - edit1_Alias->setText( account->getAccountDetail(*(new QString(ACCOUNT_ALIAS)))); - int protocoleIndex = getProtocoleIndex(account->getAccountDetail(*(new QString(ACCOUNT_TYPE)))); - edit2_Protocole->setCurrentIndex( (protocoleIndex < 0) ? 0 : protocoleIndex ); - edit3_Serveur->setText( account->getAccountDetail(*(new QString(ACCOUNT_HOSTNAME)))); - edit4_Usager->setText( account->getAccountDetail(*(new QString(ACCOUNT_USERNAME)))); - edit5_Mdp->setText( account->getAccountDetail(*(new QString(ACCOUNT_PASSWORD)))); - edit6_BoiteVocale->setText( account->getAccountDetail(*(new QString(ACCOUNT_MAILBOX)))); - QString status = account->getAccountDetail(*(new QString(ACCOUNT_STATUS))); - edit7_Etat->setText( "<FONT COLOR=\"" + account->getStateColorName() + "\">" + status + "</FONT>" ); - //edit7_Etat->setTextColor( account->getStateColor ); -} - - -void ConfigurationDialog::saveAccount(QListWidgetItem * item) -{ - if(! item) { qDebug() << "Attempting to save details of an account from a NULL item"; return; } - - Account * account = accountList->getAccountByItem(item); - if(! account) { qDebug() << "Attempting to save details of an unexisting account : " << item->text(); return; } - - account->setAccountDetail(ACCOUNT_ALIAS, edit1_Alias->text()); - account->setAccountDetail(ACCOUNT_TYPE, getIndexProtocole(edit2_Protocole->currentIndex())); - account->setAccountDetail(ACCOUNT_HOSTNAME, edit3_Serveur->text()); - account->setAccountDetail(ACCOUNT_USERNAME, edit4_Usager->text()); - account->setAccountDetail(ACCOUNT_PASSWORD, edit5_Mdp->text()); - account->setAccountDetail(ACCOUNT_MAILBOX, edit6_BoiteVocale->text()); - -} - - -void ConfigurationDialog::loadCodecs() -{ - DaemonInterface & daemon = DaemonInterfaceSingleton::getInstance(); - QStringList codecList = daemon.getCodecList(); - QStringList activeCodecList = daemon.getActiveCodecList(); - qDebug() << codecList; - qDebug() << activeCodecList; - tableWidget_Codecs->setRowCount(0); - codecPayloads->clear(); - for(int i=0 ; i<codecList.size() ; i++) - { - bool ok; - qDebug() << codecList[i]; - QString payloadStr = QString(codecList[i]); - int payload = payloadStr.toInt(&ok); - if(!ok) - qDebug() << "The codec's payload sent by the daemon is not a number : " << codecList[i]; - else - { - QStringList details = daemon.getCodecDetails(payload); - tableWidget_Codecs->insertRow(i); - QTableWidgetItem * headerItem = new QTableWidgetItem(""); - tableWidget_Codecs->setVerticalHeaderItem (i, headerItem); - //headerItem->setVisible(false); - tableWidget_Codecs->setItem(i,0,new QTableWidgetItem("")); - tableWidget_Codecs->setItem(i,1,new QTableWidgetItem(details[CODEC_NAME])); - //qDebug() << "tableWidget_Codecs->itemAt(" << i << "," << 2 << ")->setText(" << details[CODEC_NAME] << ");"; - //tableWidget_Codecs->item(i,2)->setText(details[CODEC_NAME]); - tableWidget_Codecs->setItem(i,2,new QTableWidgetItem(details[CODEC_SAMPLE_RATE])); - tableWidget_Codecs->setItem(i,3,new QTableWidgetItem(details[CODEC_BIT_RATE])); - tableWidget_Codecs->setItem(i,4,new QTableWidgetItem(details[CODEC_BANDWIDTH])); - tableWidget_Codecs->item(i,0)->setFlags(Qt::ItemIsSelectable|Qt::ItemIsUserCheckable|Qt::ItemIsEnabled); - tableWidget_Codecs->item(i,0)->setCheckState(activeCodecList.contains(codecList[i]) ? Qt::Checked : Qt::Unchecked); - tableWidget_Codecs->item(i,1)->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled); - tableWidget_Codecs->item(i,2)->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled); - tableWidget_Codecs->item(i,3)->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled); - tableWidget_Codecs->item(i,4)->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled); - (*codecPayloads)[details[CODEC_NAME]] = payloadStr; - qDebug() << "Added to codecs : " << payloadStr << " , " << details[CODEC_NAME]; - } - } - tableWidget_Codecs->resizeColumnsToContents(); - tableWidget_Codecs->resizeRowsToContents(); -} - - -void ConfigurationDialog::saveCodecs() -{ - DaemonInterface & daemon = DaemonInterfaceSingleton::getInstance(); - QStringList activeCodecs; - for(int i = 0 ; i < tableWidget_Codecs->rowCount() ; i++) - { - //qDebug() << "Checked if active : " << tableWidget_Codecs->item(i,1)->text(); - if(tableWidget_Codecs->item(i,0)->checkState() == Qt::Checked) - { - //qDebug() << "Added to activeCodecs : " << tableWidget_Codecs->item(i,1)->text(); - activeCodecs << (*codecPayloads)[tableWidget_Codecs->item(i,1)->text()]; - } - } - qDebug() << "Calling setActiveCodecList with list : " << activeCodecs ; - daemon.setActiveCodecList(activeCodecs); -} - -void ConfigurationDialog::on_edit1_Alias_textChanged(const QString & text) -{ - listWidgetComptes->currentItem()->setText(text); -} - - -void ConfigurationDialog::on_listWidgetComptes_currentItemChanged ( QListWidgetItem * current, QListWidgetItem * previous ) -{ - if(previous) - saveAccount(previous); - if(current) - loadAccount(current); -} - -void ConfigurationDialog::on_spinBox_PortSIP_valueChanged ( int value ) -{ - if(value>1024 && value<65536) - label_WarningSIP->setVisible(false); - else - label_WarningSIP->setVisible(true); -} - - - -void ConfigurationDialog::on_buttonNouveauCompte_clicked() -{ - QString itemName = QInputDialog::getText(this, "Item", "Enter new item"); - itemName = itemName.simplified(); - if (!itemName.isEmpty()) { - QListWidgetItem * item = accountList->addAccount(itemName); - //TODO verifier que addItem set bien le parent - listWidgetComptes->addItem(item); - int r = listWidgetComptes->count() - 1; - listWidgetComptes->setCurrentRow(r); - frame2_EditComptes->setEnabled(true); - } -} - -void ConfigurationDialog::on_buttonSupprimerCompte_clicked() -{ - int r = listWidgetComptes->currentRow(); - QListWidgetItem * item = listWidgetComptes->takeItem(r); - accountList->removeAccount(item); - listWidgetComptes->setCurrentRow( (r >= listWidgetComptes->count()) ? r-1 : r ); -} - - -void ConfigurationDialog::on_buttonBoxDialog_clicked(QAbstractButton * button) -{ - if(buttonBoxDialog->standardButton(button) == QDialogButtonBox::Apply) - { - this->saveOptions(); - this->loadOptions(); - } - if(buttonBoxDialog->standardButton(button) == QDialogButtonBox::RestoreDefaults) - { - this->loadOptions(); - } - if(buttonBoxDialog->standardButton(button) == QDialogButtonBox::Ok) - { - this->saveOptions(); - this->setVisible(false); - } - if(buttonBoxDialog->standardButton(button) == QDialogButtonBox::Cancel) - { - this->setVisible(false); - } -} - -/* -void ConfigurationDialog::on_listWidgetComptes_itemChanged(QListWidgetItem * item) -{ - if(! item) { qDebug() << "Attempting to save details of an account from a NULL item\n"; return; } - - Account * account = accountList->getAccountByItem(item); - if(! account) { qDebug() << "Attempting to save details of an unexisting account\n"; return; } - - if(item->checkState() != account->getAccountState) - - if(buttonBoxDialog->standardButton(button) == QDialogButtonBox::Apply) - { - this->saveOptions(); - this->loadOptions(); - } - if(buttonBoxDialog->standardButton(button) == QDialogButtonBox::RestoreDefaults) - { - this->loadOptions(); - } - if(buttonBoxDialog->standardButton(button) == QDialogButtonBox::Ok) - { - this->saveOptions(); - this->setVisible(false); - } - if(buttonBoxDialog->standardButton(button) == QDialogButtonBox::Cancel) - { - this->setVisible(false); - } -} -*/ \ No newline at end of file diff --git a/sflphone-qt/ConfigDialog.h b/sflphone-qt/ConfigDialog.h deleted file mode 100644 index eb7311fc0231601a86bc13f5aa520fe094839c7b..0000000000000000000000000000000000000000 --- a/sflphone-qt/ConfigDialog.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef HEADER_CONFIGDIALOG -#define HEADER_CONFIGDIALOG - -#include <QtGui> -#include "ui_ConfigDialog.h" -#include "daemon_interface_p.h" -#include "AccountList.h" -#include <QErrorMessage> - -//struct QListViewItem; - -class DaemonInterface; - -class ConfigurationDialog : public QDialog, private Ui::ConfigurationDialog -{ - Q_OBJECT - - -private: - DaemonInterface * daemon; - AccountList * accountList; - QErrorMessage * errorWindow; - MapStringString * codecPayloads; - -public: - ConfigurationDialog(QDialog *parent = 0); - - void loadAccount(QListWidgetItem * item); - void saveAccount(QListWidgetItem * item); - - void loadAccountList(); - void saveAccountList(); - - void loadCodecs(); - void saveCodecs(); - - void loadOptions(); - void saveOptions(); - -private slots: - void on_buttonSupprimerCompte_clicked(); - void on_buttonNouveauCompte_clicked(); - void on_edit1_Alias_textChanged(const QString & text); - void on_listWidgetComptes_currentItemChanged ( QListWidgetItem * current, QListWidgetItem * previous ); - void on_spinBox_PortSIP_valueChanged ( int value ); - void on_buttonBoxDialog_clicked(QAbstractButton * button); -}; - - - -#endif diff --git a/sflphone-qt/ConfigDialog.ui b/sflphone-qt/ConfigDialog.ui deleted file mode 100644 index f9ad3c1b2085c8c37c998e6a64600f06d4c7bba8..0000000000000000000000000000000000000000 --- a/sflphone-qt/ConfigDialog.ui +++ /dev/null @@ -1,1195 +0,0 @@ -<ui version="4.0" > - <author>Jérémy Quentin</author> - <class>ConfigurationDialog</class> - <widget class="QDialog" name="ConfigurationDialog" > - <property name="geometry" > - <rect> - <x>0</x> - <y>0</y> - <width>504</width> - <height>432</height> - </rect> - </property> - <property name="minimumSize" > - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="windowTitle" > - <string>Dialog</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout" > - <property name="margin" > - <number>1</number> - </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayoutDialog" > - <property name="sizeConstraint" > - <enum>QLayout::SetDefaultConstraint</enum> - </property> - <item> - <widget class="QListWidget" name="listOptions" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize" > - <size> - <width>100</width> - <height>300</height> - </size> - </property> - <property name="maximumSize" > - <size> - <width>100</width> - <height>16777215</height> - </size> - </property> - <property name="sizeIncrement" > - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="mouseTracking" > - <bool>false</bool> - </property> - <property name="contextMenuPolicy" > - <enum>Qt::DefaultContextMenu</enum> - </property> - <property name="acceptDrops" > - <bool>false</bool> - </property> - <property name="layoutDirection" > - <enum>Qt::LeftToRight</enum> - </property> - <property name="autoFillBackground" > - <bool>true</bool> - </property> - <property name="autoScrollMargin" > - <number>16</number> - </property> - <property name="editTriggers" > - <set>QAbstractItemView::AllEditTriggers</set> - </property> - <property name="dragEnabled" > - <bool>true</bool> - </property> - <property name="iconSize" > - <size> - <width>200</width> - <height>200</height> - </size> - </property> - <property name="textElideMode" > - <enum>Qt::ElideMiddle</enum> - </property> - <property name="verticalScrollMode" > - <enum>QAbstractItemView::ScrollPerItem</enum> - </property> - <property name="horizontalScrollMode" > - <enum>QAbstractItemView::ScrollPerItem</enum> - </property> - <property name="movement" > - <enum>QListView::Static</enum> - </property> - <property name="flow" > - <enum>QListView::TopToBottom</enum> - </property> - <property name="resizeMode" > - <enum>QListView::Adjust</enum> - </property> - <property name="layoutMode" > - <enum>QListView::SinglePass</enum> - </property> - <property name="viewMode" > - <enum>QListView::IconMode</enum> - </property> - <property name="modelColumn" > - <number>0</number> - </property> - <property name="uniformItemSizes" > - <bool>false</bool> - </property> - <property name="wordWrap" > - <bool>false</bool> - </property> - <property name="sortingEnabled" > - <bool>false</bool> - </property> - <item> - <property name="text" > - <string>Général</string> - </property> - <property name="icon" > - <iconset> - <normaloff>:/Images/sflphone.png</normaloff>:/Images/sflphone.png</iconset> - </property> - </item> - <item> - <property name="text" > - <string>Affichage</string> - </property> - <property name="icon" > - <iconset> - <normaloff>:/Images/sflphone.png</normaloff>:/Images/sflphone.png</iconset> - </property> - </item> - <item> - <property name="text" > - <string>Comptes</string> - </property> - <property name="icon" > - <iconset> - <normaloff>:/Images/stock_person.svg</normaloff>:/Images/stock_person.svg</iconset> - </property> - </item> - <item> - <property name="text" > - <string>Audio</string> - </property> - <property name="icon" > - <iconset> - <normaloff>:/Images/icon_volume_off.svg</normaloff>:/Images/icon_volume_off.svg</iconset> - </property> - </item> - </widget> - </item> - <item> - <widget class="Line" name="lineOptions" > - <property name="orientation" > - <enum>Qt::Vertical</enum> - </property> - </widget> - </item> - <item> - <widget class="QStackedWidget" name="stackedWidgetOptions" > - <property name="currentIndex" > - <number>2</number> - </property> - <widget class="QWidget" name="page_General" > - <layout class="QVBoxLayout" name="verticalLayout_18" > - <property name="leftMargin" > - <number>4</number> - </property> - <item> - <widget class="QLabel" name="label_ConfGeneral" > - <property name="text" > - <string>Configuration des paramètres généraux</string> - </property> - </widget> - </item> - <item> - <widget class="Line" name="line_ConfGeneral" > - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBox1_Historique" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title" > - <string>Historique des appels</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout_19" > - <item> - <widget class="QWidget" native="1" name="widget_CapaciteHist" > - <layout class="QHBoxLayout" name="horizontalLayout_10" > - <item> - <widget class="QLabel" name="label_Capacite" > - <property name="text" > - <string>&Capacité</string> - </property> - <property name="buddy" > - <cstring>horizontalSlider_Capacity</cstring> - </property> - </widget> - </item> - <item> - <widget class="QSlider" name="horizontalSlider_Capacity" > - <property name="maximum" > - <number>100</number> - </property> - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <widget class="QSpinBox" name="spinBox_CapaciteHist" /> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QToolButton" name="toolButtonEffacerHist" > - <property name="text" > - <string>&Effacer l'Historique</string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBox2_Connexion" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title" > - <string>Connexion</string> - </property> - <layout class="QFormLayout" name="formLayout_12" > - <property name="fieldGrowthPolicy" > - <enum>QFormLayout::ExpandingFieldsGrow</enum> - </property> - <item row="0" column="0" > - <widget class="QLabel" name="label_PortSIP" > - <property name="text" > - <string>Port SIP</string> - </property> - </widget> - </item> - <item row="0" column="1" > - <widget class="QWidget" native="1" name="widget" > - <property name="minimumSize" > - <size> - <width>50</width> - <height>0</height> - </size> - </property> - <layout class="QHBoxLayout" name="horizontalLayout" > - <property name="margin" > - <number>0</number> - </property> - <item> - <widget class="QSpinBox" name="spinBox_PortSIP" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimum" > - <number>1025</number> - </property> - <property name="maximum" > - <number>65536</number> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="label_WarningSIP" > - <property name="enabled" > - <bool>false</bool> - </property> - <property name="text" > - <string>Attention </string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QWidget" native="1" name="widget_RemplissageConfGeneral" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="page_Affichage" > - <layout class="QVBoxLayout" name="verticalLayout_9" > - <item> - <widget class="QLabel" name="label_ConfAffichage" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>Configuration de l'affichage</string> - </property> - </widget> - </item> - <item> - <widget class="Line" name="line_ConfAffichage" > - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <widget class="QFrame" name="frameAffichage" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="frameShape" > - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow" > - <enum>QFrame::Raised</enum> - </property> - <layout class="QVBoxLayout" name="verticalLayout_8" > - <item> - <widget class="QLabel" name="label1_Notifications" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>Activer les notifications du bureau</string> - </property> - </widget> - </item> - <item> - <widget class="QWidget" native="1" name="widget1_Notifications" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <layout class="QHBoxLayout" name="horizontalLayout_5" > - <item> - <widget class="QCheckBox" name="checkBox1_NotifAppels" > - <property name="text" > - <string>&Appels entrants</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox2_NotifMessages" > - <property name="text" > - <string>&Messages vocaux</string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QLabel" name="label2_FenetrePrincipale" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>Faire apparaître la fenêtre principale</string> - </property> - </widget> - </item> - <item> - <widget class="QWidget" native="1" name="widget_FenetrePrincipale" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <layout class="QHBoxLayout" name="horizontalLayout_6" > - <item> - <widget class="QCheckBox" name="checkBox1_FenDemarrage" > - <property name="text" > - <string>Au &démarrage</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox2_FenAppel" > - <property name="text" > - <string>Lors d'un appel &entrant</string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QWidget" native="1" name="widget_5" /> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="page_Comptes" > - <layout class="QVBoxLayout" name="verticalLayout_2" > - <item> - <widget class="QLabel" name="label_ConfComptes" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>Configuration des comptes utilisateur</string> - </property> - </widget> - </item> - <item> - <widget class="Line" name="line_ConfComptes" > - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <widget class="QWidget" native="1" name="widget1_ConfComptes" > - <layout class="QHBoxLayout" name="horizontalLayout_3" > - <item> - <widget class="QFrame" name="frame1_ListeComptes" > - <property name="minimumSize" > - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="maximumSize" > - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="frameShape" > - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow" > - <enum>QFrame::Raised</enum> - </property> - <layout class="QVBoxLayout" name="verticalLayout_6" > - <item> - <widget class="QListWidget" name="listWidgetComptes" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Fixed" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize" > - <size> - <width>150</width> - <height>0</height> - </size> - </property> - <property name="maximumSize" > - <size> - <width>150</width> - <height>16777215</height> - </size> - </property> - <property name="dragEnabled" > - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBoxGestionComptes" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize" > - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="layoutDirection" > - <enum>Qt::RightToLeft</enum> - </property> - <property name="title" > - <string/> - </property> - <property name="alignment" > - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - <layout class="QHBoxLayout" name="horizontalLayout_2" > - <property name="spacing" > - <number>0</number> - </property> - <property name="margin" > - <number>0</number> - </property> - <item> - <widget class="QToolButton" name="buttonSupprimerCompte" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string/> - </property> - <property name="icon" > - <iconset> - <normaloff>:/Images/hang_up.svg</normaloff>:/Images/hang_up.svg</iconset> - </property> - <property name="shortcut" > - <string>+</string> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="buttonNouveauCompte" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="sizeIncrement" > - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="text" > - <string>...</string> - </property> - <property name="icon" > - <iconset> - <normaloff>:/Images/accept.svg</normaloff>:/Images/accept.svg</iconset> - </property> - </widget> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QFrame" name="frame2_EditComptes" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="frameShape" > - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow" > - <enum>QFrame::Raised</enum> - </property> - <layout class="QFormLayout" name="formLayout_2" > - <property name="fieldGrowthPolicy" > - <enum>QFormLayout::ExpandingFieldsGrow</enum> - </property> - <item row="0" column="0" > - <widget class="QLabel" name="label1_Alias" > - <property name="text" > - <string>&Alias</string> - </property> - <property name="buddy" > - <cstring>edit1_Alias</cstring> - </property> - </widget> - </item> - <item row="0" column="1" > - <widget class="QLineEdit" name="edit1_Alias" > - <property name="minimumSize" > - <size> - <width>0</width> - <height>0</height> - </size> - </property> - </widget> - </item> - <item row="1" column="0" > - <widget class="QLabel" name="label2_Protocole" > - <property name="text" > - <string>&Protocole</string> - </property> - <property name="buddy" > - <cstring>edit2_Protocole</cstring> - </property> - </widget> - </item> - <item row="2" column="0" > - <widget class="QLabel" name="label3_Serveur" > - <property name="text" > - <string>&Serveur</string> - </property> - <property name="buddy" > - <cstring>edit3_Serveur</cstring> - </property> - </widget> - </item> - <item row="3" column="0" > - <widget class="QLabel" name="label4_Usager" > - <property name="text" > - <string>&Usager</string> - </property> - <property name="buddy" > - <cstring>edit4_Usager</cstring> - </property> - </widget> - </item> - <item row="4" column="0" > - <widget class="QLabel" name="label5_Mdp" > - <property name="text" > - <string>&Mot de Passe</string> - </property> - <property name="buddy" > - <cstring>edit5_Mdp</cstring> - </property> - </widget> - </item> - <item row="5" column="0" > - <widget class="QLabel" name="label6_BoiteVocale" > - <property name="text" > - <string>&Boîte Vocale</string> - </property> - <property name="buddy" > - <cstring>edit6_BoiteVocale</cstring> - </property> - </widget> - </item> - <item row="2" column="1" > - <widget class="QLineEdit" name="edit3_Serveur" > - <property name="minimumSize" > - <size> - <width>0</width> - <height>0</height> - </size> - </property> - </widget> - </item> - <item row="3" column="1" > - <widget class="QLineEdit" name="edit4_Usager" /> - </item> - <item row="4" column="1" > - <widget class="QLineEdit" name="edit5_Mdp" > - <property name="echoMode" > - <enum>QLineEdit::Password</enum> - </property> - </widget> - </item> - <item row="5" column="1" > - <widget class="QLineEdit" name="edit6_BoiteVocale" /> - </item> - <item row="1" column="1" > - <widget class="QComboBox" name="edit2_Protocole" > - <item> - <property name="text" > - <string>SIP</string> - </property> - </item> - <item> - <property name="text" > - <string>IAX</string> - </property> - </item> - </widget> - </item> - <item row="6" column="1" > - <widget class="QLabel" name="edit7_Etat" > - <property name="text" > - <string/> - </property> - </widget> - </item> - <item row="6" column="0" > - <widget class="QLabel" name="label7_Etat" > - <property name="text" > - <string>État </string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBox_ConfComptesCommuns" > - <property name="title" > - <string/> - </property> - <layout class="QVBoxLayout" name="verticalLayout_10" > - <item> - <widget class="QLabel" name="label_ConfComptesCommus" > - <property name="text" > - <string>Les paramètres STUN seront appliqués à tous les comptes</string> - </property> - </widget> - </item> - <item> - <layout class="QFormLayout" name="formLayoutConfComptesCommus" > - <property name="fieldGrowthPolicy" > - <enum>QFormLayout::ExpandingFieldsGrow</enum> - </property> - <item row="0" column="0" > - <widget class="QCheckBox" name="checkBoxStun" > - <property name="text" > - <string>Activer Stun</string> - </property> - </widget> - </item> - <item row="0" column="1" > - <widget class="QLineEdit" name="lineEdit_Stun" > - <property name="enabled" > - <bool>false</bool> - </property> - </widget> - </item> - </layout> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="page_Audio" > - <layout class="QVBoxLayout" name="verticalLayout_5" > - <item> - <widget class="QLabel" name="label_ConfAudio" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>Configuration des paramètres audio</string> - </property> - </widget> - </item> - <item> - <widget class="Line" name="line_ConfAudio" > - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBox1_Audio" > - <property name="title" > - <string/> - </property> - <layout class="QFormLayout" name="formLayout_3" > - <item row="0" column="0" > - <widget class="QLabel" name="label_Interface" > - <property name="text" > - <string>&Interface audio</string> - </property> - <property name="buddy" > - <cstring>comboBox_Interface</cstring> - </property> - </widget> - </item> - <item row="0" column="1" > - <widget class="QComboBox" name="comboBox_Interface" > - <property name="minimumSize" > - <size> - <width>100</width> - <height>0</height> - </size> - </property> - <item> - <property name="text" > - <string>ALSA</string> - </property> - </item> - <item> - <property name="text" > - <string>PulseAudio</string> - </property> - </item> - </widget> - </item> - <item row="1" column="0" > - <widget class="QCheckBox" name="checkBox_Sonneries" > - <property name="text" > - <string>&Activer les sonneries</string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBox2_Codecs" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title" > - <string>&Codecs</string> - </property> - <layout class="QGridLayout" name="gridLayout" > - <item row="0" column="2" > - <layout class="QVBoxLayout" name="verticalLayout_OrdreCodecs" > - <property name="leftMargin" > - <number>0</number> - </property> - <property name="rightMargin" > - <number>0</number> - </property> - <item> - <widget class="QToolButton" name="toolButton_MonterCodec" > - <property name="text" > - <string>...</string> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="toolButton_DescendreCodec" > - <property name="text" > - <string>...</string> - </property> - </widget> - </item> - </layout> - </item> - <item row="0" column="0" > - <widget class="QTableWidget" name="tableWidget_Codecs" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize" > - <size> - <width>0</width> - <height>100</height> - </size> - </property> - <property name="frameShape" > - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow" > - <enum>QFrame::Sunken</enum> - </property> - <property name="verticalScrollBarPolicy" > - <enum>Qt::ScrollBarAsNeeded</enum> - </property> - <property name="textElideMode" > - <enum>Qt::ElideRight</enum> - </property> - <property name="verticalScrollMode" > - <enum>QAbstractItemView::ScrollPerPixel</enum> - </property> - <property name="horizontalScrollMode" > - <enum>QAbstractItemView::ScrollPerPixel</enum> - </property> - <column> - <property name="text" > - <string>Actif</string> - </property> - </column> - <column> - <property name="text" > - <string>Nom</string> - </property> - </column> - <column> - <property name="text" > - <string>Fréquence</string> - </property> - </column> - <column> - <property name="text" > - <string>Bitrate</string> - </property> - </column> - <column> - <property name="text" > - <string>Bande Passante</string> - </property> - </column> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QStackedWidget" name="stackedWidget_ParametresSpecif" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="currentIndex" > - <number>1</number> - </property> - <widget class="QWidget" name="page1_Alsa" > - <layout class="QVBoxLayout" name="verticalLayout_20" > - <property name="margin" > - <number>0</number> - </property> - <item> - <widget class="QGroupBox" name="groupBox_Alsa" > - <property name="title" > - <string>Paramètres ALSA</string> - </property> - <layout class="QFormLayout" name="formLayout_4" > - <item row="2" column="1" > - <widget class="QComboBox" name="comboBox2_Entree" > - <property name="minimumSize" > - <size> - <width>100</width> - <height>0</height> - </size> - </property> - </widget> - </item> - <item row="2" column="0" > - <widget class="QLabel" name="label2_Entree" > - <property name="text" > - <string>&Entrée</string> - </property> - <property name="buddy" > - <cstring>comboBox2_Entree</cstring> - </property> - </widget> - </item> - <item row="3" column="0" > - <widget class="QLabel" name="label3_Sortie" > - <property name="text" > - <string>&Sortie</string> - </property> - <property name="buddy" > - <cstring>comboBox3_Sortie</cstring> - </property> - </widget> - </item> - <item row="3" column="1" > - <widget class="QComboBox" name="comboBox3_Sortie" > - <property name="minimumSize" > - <size> - <width>100</width> - <height>0</height> - </size> - </property> - </widget> - </item> - <item row="0" column="0" > - <widget class="QLabel" name="label1_GreffonAlsa" > - <property name="text" > - <string>&Greffon ALSA</string> - </property> - <property name="buddy" > - <cstring>comboBox1_GreffonAlsa</cstring> - </property> - </widget> - </item> - <item row="0" column="1" > - <widget class="QComboBox" name="comboBox1_GreffonAlsa" > - <property name="minimumSize" > - <size> - <width>100</width> - <height>0</height> - </size> - </property> - </widget> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="page2_PulseAudio" > - <layout class="QVBoxLayout" name="verticalLayout_7" > - <item> - <widget class="QGroupBox" name="groupBox_PulseAudio" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title" > - <string>Paramètres PulseAudio</string> - </property> - <layout class="QFormLayout" name="formLayout_11" > - <property name="fieldGrowthPolicy" > - <enum>QFormLayout::ExpandingFieldsGrow</enum> - </property> - <item row="0" column="0" > - <widget class="QCheckBox" name="checkBox_ModifVolumeApps" > - <property name="text" > - <string>Autoriser à &modifier le volume des autres applications</string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - </widget> - </item> - </layout> - </widget> - </widget> - </item> - </layout> - </item> - <item> - <widget class="Line" name="lineDialog" > - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <widget class="QDialogButtonBox" name="buttonBoxDialog" > - <property name="layoutDirection" > - <enum>Qt::LeftToRight</enum> - </property> - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - <property name="standardButtons" > - <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set> - </property> - <property name="centerButtons" > - <bool>false</bool> - </property> - </widget> - </item> - </layout> - </widget> - <layoutdefault spacing="4" margin="4" /> - <resources> - <include location="../../sflphone-qt/resources.qrc" /> - </resources> - <connections> - <connection> - <sender>buttonBoxDialog</sender> - <signal>rejected()</signal> - <receiver>ConfigurationDialog</receiver> - <slot>reject()</slot> - <hints> - <hint type="sourcelabel" > - <x>300</x> - <y>430</y> - </hint> - <hint type="destinationlabel" > - <x>286</x> - <y>274</y> - </hint> - </hints> - </connection> - <connection> - <sender>listOptions</sender> - <signal>currentRowChanged(int)</signal> - <receiver>stackedWidgetOptions</receiver> - <slot>setCurrentIndex(int)</slot> - <hints> - <hint type="sourcelabel" > - <x>73</x> - <y>92</y> - </hint> - <hint type="destinationlabel" > - <x>191</x> - <y>82</y> - </hint> - </hints> - </connection> - <connection> - <sender>checkBoxStun</sender> - <signal>toggled(bool)</signal> - <receiver>lineEdit_Stun</receiver> - <slot>setEnabled(bool)</slot> - <hints> - <hint type="sourcelabel" > - <x>228</x> - <y>374</y> - </hint> - <hint type="destinationlabel" > - <x>431</x> - <y>378</y> - </hint> - </hints> - </connection> - <connection> - <sender>comboBox_Interface</sender> - <signal>currentIndexChanged(int)</signal> - <receiver>stackedWidget_ParametresSpecif</receiver> - <slot>setCurrentIndex(int)</slot> - <hints> - <hint type="sourcelabel" > - <x>229</x> - <y>21</y> - </hint> - <hint type="destinationlabel" > - <x>208</x> - <y>27</y> - </hint> - </hints> - </connection> - <connection> - <sender>horizontalSlider_Capacity</sender> - <signal>valueChanged(int)</signal> - <receiver>spinBox_CapaciteHist</receiver> - <slot>setValue(int)</slot> - <hints> - <hint type="sourcelabel" > - <x>170</x> - <y>31</y> - </hint> - <hint type="destinationlabel" > - <x>196</x> - <y>31</y> - </hint> - </hints> - </connection> - <connection> - <sender>spinBox_CapaciteHist</sender> - <signal>valueChanged(int)</signal> - <receiver>horizontalSlider_Capacity</receiver> - <slot>setValue(int)</slot> - <hints> - <hint type="sourcelabel" > - <x>196</x> - <y>31</y> - </hint> - <hint type="destinationlabel" > - <x>170</x> - <y>31</y> - </hint> - </hints> - </connection> - </connections> -</ui> diff --git a/sflphone-qt/IOption.h b/sflphone-qt/IOption.h deleted file mode 100644 index 0dc903104a40e8cb250f7add2a393ac82b4367ad..0000000000000000000000000000000000000000 --- a/sflphone-qt/IOption.h +++ /dev/null @@ -1,15 +0,0 @@ -#include "ConfigDialog.h" - -class IOption{ - - virtual bool operator== (const IOption & other) = 0 ; - - virtual ConfigurationDialog & operator<< ( ConfigurationDialog & cd, const IOption & o) = 0; - - virtual DaemonInterface & operator<< ( DaemonInterface & d, const IOption & o) = 0; - - virtual ConfigurationDialog & operator>> ( ConfigurationDialog & cd, IOption & o) = 0; - - virtual DaemonInterface & operator>> ( DaemonInterface & d, IOption & o) = 0; - -} \ No newline at end of file diff --git a/sflphone-qt/accept.svg b/sflphone-qt/accept.svg deleted file mode 100644 index 8d84af6b017730112f197bf2eafd5c0c00adbace..0000000000000000000000000000000000000000 --- a/sflphone-qt/accept.svg +++ /dev/null @@ -1,182 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="24" - height="24" - id="svg2" - sodipodi:version="0.32" - inkscape:version="0.46" - version="1.0" - sodipodi:docbase="/home/plbeaudoin/SFLPhone/sflphone/sflphone-gtk/pixmaps" - sodipodi:docname="accept.svg" - inkscape:output_extension="org.inkscape.output.svg.inkscape" - sodipodi:modified="true"> - <defs - id="defs4"> - <linearGradient - inkscape:collect="always" - id="linearGradient2433"> - <stop - style="stop-color:#008000;stop-opacity:1;" - offset="0" - id="stop2435" /> - <stop - style="stop-color:#008000;stop-opacity:0;" - offset="1" - id="stop2437" /> - </linearGradient> - <inkscape:perspective - sodipodi:type="inkscape:persp3d" - inkscape:vp_x="0 : 12 : 1" - inkscape:vp_y="0 : 1000 : 0" - inkscape:vp_z="24 : 12 : 1" - inkscape:persp3d-origin="12 : 8 : 1" - id="perspective32" /> - <linearGradient - id="linearGradient4269"> - <stop - style="stop-color:#26b000;stop-opacity:1;" - offset="0" - id="stop4271" /> - <stop - style="stop-color:#26b000;stop-opacity:0;" - offset="1" - id="stop4273" /> - </linearGradient> - <linearGradient - id="linearGradient4183"> - <stop - id="stop4185" - offset="0" - style="stop-color:#26b000;stop-opacity:1;" /> - <stop - id="stop4187" - offset="1" - style="stop-color:#145f00;stop-opacity:1;" /> - </linearGradient> - <linearGradient - id="linearGradient4167"> - <stop - style="stop-color:#80000e;stop-opacity:1;" - offset="0" - id="stop4169" /> - <stop - style="stop-color:#b00014;stop-opacity:0;" - offset="1" - id="stop4171" /> - </linearGradient> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4269" - id="linearGradient4275" - x1="15.630395" - y1="22.874208" - x2="15.630395" - y2="8.5305319" - gradientUnits="userSpaceOnUse" - gradientTransform="matrix(1.256521,0,0,-1.256521,-7.854319,28.773309)" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient2433" - id="linearGradient2439" - x1="2.965755" - y1="-0.80084854" - x2="32.578228" - y2="16.739393" - gradientUnits="userSpaceOnUse" /> - </defs> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="16" - inkscape:cx="18.87396" - inkscape:cy="2.756874" - inkscape:document-units="px" - inkscape:current-layer="layer1" - width="32px" - height="32px" - showguides="true" - inkscape:guide-bbox="true" - inkscape:window-width="1331" - inkscape:window-height="922" - inkscape:window-x="169" - inkscape:window-y="24" - showgrid="false"> - <sodipodi:guide - orientation="vertical" - position="15.982143" - id="guide3146" /> - </sodipodi:namedview> - <metadata - id="metadata7"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Calque 1" - inkscape:groupmode="layer" - id="layer1"> - <path - style="opacity:1;fill:url(#linearGradient4275);fill-opacity:1;stroke:none;stroke-width:0.625;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - d="M 7.3417195,21.902705 L 7.3417195,9.4553023 L 3.2972955,9.4553023 L 12.250001,0.03140142 L 21.202707,9.4553023 L 17.158282,9.4553023 L 17.158282,21.902705 L 7.3417195,21.902705 z " - id="rect4262" /> - <g - id="g2181" - transform="matrix(0.8753565,0,0,0.8754652,-11.955751,23.215691)" - style="fill:none;stroke:#000000;stroke-opacity:0.44968554"> - <path - style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.65573961;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.44968554" - d="M 41.109694,-0.41817229 C 40.505298,0.20454826 39.040867,0.77635346 37.592239,0.77635106 C 36.102089,0.77635106 34.114653,0.15682998 33.532659,-0.49267807 L 33.569913,-2.0031726 L 33.569913,-3.0835065 C 31.027414,-3.5787101 30.997014,-3.8285637 27.525623,-3.8285643 C 24.054233,-3.8285649 23.830777,-3.5759718 21.29017,-3.0462535 L 21.29017,-0.3436665 C 20.685773,0.27905404 19.221343,0.87609843 17.772714,0.87609724 C 16.282564,0.87609724 14.623294,0.43325774 13.915083,-0.41817229 L 14.138601,-5.7646408 C 18.129172,-7.3187814 22.030595,-8.3970767 27.437882,-8.5586077 C 32.38601,-8.450833 36.259126,-7.7053161 40.886177,-5.8763994 L 41.109694,-0.41817229 z " - id="path2183" - sodipodi:nodetypes="csccczccsccccc" /> - </g> - <g - id="g4160" - transform="matrix(0.880119,0,0,0.880119,-2.1102174,12.142342)" - style="fill:url(#linearGradient2439);fill-opacity:1"> - <path - sodipodi:nodetypes="cccsccsccsccc" - id="path3153" - d="M 16.100095,4.59375 C 10.946289,4.7477067 7.2256019,5.7999634 3.4220983,7.28125 L 3.2345983,10.227679 C 3.7846813,10.972881 5.0136533,11.508929 6.4220983,11.508929 C 7.7912983,11.508929 8.9758403,11.004648 9.5470983,10.290179 L 9.5470983,9.1875 C 11.968608,8.682612 12.862258,8.4375 16.125,8.4375 C 19.479577,8.4375001 20.38467,8.6842603 22.807982,9.15625 L 22.807982,10.165179 C 23.37924,10.879648 24.563781,11.383929 25.932982,11.383929 C 27.341427,11.383929 28.53915,10.847881 29.089232,10.102679 L 28.901732,7.15625 C 24.491586,5.413068 20.816266,4.6964725 16.100095,4.59375 z " - style="opacity:1;fill:url(#linearGradient2439);fill-opacity:1;stroke:#0f5600;stroke-width:0.62500000000000000;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> - <path - sodipodi:nodetypes="cccsccc" - id="path3161" - d="M 6.4075414,13.019293 C 7.7882612,13.019293 8.983936,12.610489 9.5600003,12.01696 L 9.5600003,10.430989 C 8.8231919,11.109285 7.789205,11.494948 6.4075414,11.494948 C 4.9854414,11.494948 3.9881276,11.13019 3.2127675,10.48174 L 3.2127675,11.966208 C 3.7674786,12.585269 4.9872465,13.019293 6.4075414,13.019293 z " - style="opacity:1;fill:url(#linearGradient2439);fill-opacity:1;stroke:#0f5600;stroke-width:0.57204323999999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> - <path - sodipodi:nodetypes="cccsccc" - id="path4140" - d="M 25.967532,12.944669 C 27.348252,12.944669 28.543927,12.535865 29.119991,11.942336 L 29.119991,10.356365 C 28.383183,11.034661 27.349196,11.420324 25.967532,11.420324 C 24.545432,11.420324 23.548118,11.055566 22.772758,10.407116 L 22.772758,11.891584 C 23.327469,12.510645 24.547237,12.944669 25.967532,12.944669 z " - style="opacity:1;fill:url(#linearGradient2439);fill-opacity:1;stroke:#0f5600;stroke-width:0.57204323999999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> - <path - sodipodi:nodetypes="cccsccc" - id="path4246" - d="M 6.6822725,11.157918 C 8.0629923,11.157918 8.7535908,10.73333 9.3296551,10.139801 L 9.8978659,7.4805434 C 9.1610575,8.1588394 8.1270706,8.5445024 6.745407,8.5445024 C 5.323307,8.5445024 4.4996132,8.1797444 3.7242531,7.5312944 L 3.4874986,10.104833 C 4.0422097,10.723894 5.2619776,11.157918 6.6822725,11.157918 z " - style="opacity:1;fill:url(#linearGradient2439);fill-opacity:1;stroke:none;stroke-width:0.57204323999999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> - <path - sodipodi:nodetypes="cccsccc" - id="path4258" - d="M 25.633599,11.055324 C 24.252879,11.055324 23.56228,10.630736 22.986216,10.037207 L 22.418005,7.3779497 C 23.154814,8.0562457 24.188801,8.4419087 25.570464,8.4419087 C 26.992564,8.4419087 27.816258,8.0771507 28.591618,7.4287007 L 28.828373,10.002239 C 28.273662,10.6213 27.053894,11.055324 25.633599,11.055324 z " - style="opacity:1;fill:url(#linearGradient2439);fill-opacity:1;stroke:none;stroke-width:0.57204323999999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> - </g> - </g> -</svg> diff --git a/sflphone-qt/config_en.ts b/sflphone-qt/config_en.ts deleted file mode 100644 index 1819343595da581d5dc8ec7676a5c24e7422a7dd..0000000000000000000000000000000000000000 --- a/sflphone-qt/config_en.ts +++ /dev/null @@ -1,181 +0,0 @@ -<!DOCTYPE TS><TS> -<context> - <name>ConfigurationDialog</name> - <message> - <source>Dialog</source> - <translation>Dialog</translation> - </message> - <message encoding="UTF-8"> - <source>Général</source> - <translation>General</translation> - </message> - <message> - <source>Affichage</source> - <translation>Display</translation> - </message> - <message> - <source>Comptes</source> - <translation>Accounts</translation> - </message> - <message> - <source>Audio</source> - <translation>Audio</translation> - </message> - <message encoding="UTF-8"> - <source>Configuration des paramètres généraux</source> - <translation>General settings</translation> - </message> - <message> - <source>Historique des appels</source> - <translation>Call history</translation> - </message> - <message encoding="UTF-8"> - <source>&Capacité</source> - <translation>&Capacity</translation> - </message> - <message> - <source>&Effacer l'Historique</source> - <translation>&Clean history</translation> - </message> - <message> - <source>Connexion</source> - <translation>Connection</translation> - </message> - <message> - <source>Port SIP</source> - <translation>SIP port</translation> - </message> - <message> - <source>Configuration de l'affichage</source> - <translation>Display settings</translation> - </message> - <message> - <source>Activer les notifications du bureau</source> - <translation>Enable desktop notifications</translation> - </message> - <message> - <source>&Appels entrants</source> - <translation>Calls</translation> - </message> - <message> - <source>&Messages vocaux</source> - <translation>Vocal messages</translation> - </message> - <message encoding="UTF-8"> - <source>Faire apparaître la fenêtre principale</source> - <translation>Show the main window</translation> - </message> - <message encoding="UTF-8"> - <source>Au &démarrage</source> - <translation>At &start</translation> - </message> - <message> - <source>Lors d'un appel &entrant</source> - <translation>When &receiving a call</translation> - </message> - <message> - <source>Configuration des comptes utilisateur</source> - <translation>Acounts settings</translation> - </message> - <message> - <source>+</source> - <translation>+</translation> - </message> - <message> - <source>...</source> - <translation>...</translation> - </message> - <message> - <source>&Alias</source> - <translation>&Alias</translation> - </message> - <message> - <source>&Protocole</source> - <translation>&Protocole</translation> - </message> - <message> - <source>&Serveur</source> - <translation>&Server</translation> - </message> - <message> - <source>&Usager</source> - <translation>&User</translation> - </message> - <message> - <source>&Mot de Passe</source> - <translation>Pass&Word</translation> - </message> - <message encoding="UTF-8"> - <source>&Boîte Vocale</source> - <translation>&Voicemail</translation> - </message> - <message> - <source>SIP</source> - <translation>SIP</translation> - </message> - <message> - <source>IAX</source> - <translation>IAX</translation> - </message> - <message encoding="UTF-8"> - <source>Les paramètres STUN seront appliqués à tous les comptes</source> - <translation>STUN settings will be applied on all accounts</translation> - </message> - <message> - <source>Activer Stun</source> - <translation>Enable STUN</translation> - </message> - <message encoding="UTF-8"> - <source>Configuration des paramètres audio</source> - <translation>Audio settings</translation> - </message> - <message> - <source>&Interface audio</source> - <translation>Audio &interface</translation> - </message> - <message> - <source>ALSA</source> - <translation>ALSA</translation> - </message> - <message> - <source>PulseAudio</source> - <translation>PulseAudio</translation> - </message> - <message> - <source>&Activer les sonneries</source> - <translation>Enable &ringtones</translation> - </message> - <message> - <source>&Codecs</source> - <translation>&Codecs</translation> - </message> - <message encoding="UTF-8"> - <source>Paramètres ALSA</source> - <translation>ALSA settings</translation> - </message> - <message encoding="UTF-8"> - <source>&Entrée</source> - <translation>&Entry</translation> - </message> - <message> - <source>&Sortie</source> - <translation>&Out</translation> - </message> - <message> - <source>&Greffon ALSA</source> - <translation>ALSA &plugin</translation> - </message> - <message encoding="UTF-8"> - <source>Paramètres PulseAudio</source> - <translation>Pulseaudio settings</translation> - </message> - <message encoding="UTF-8"> - <source>Autoriser à &modifier le volume des autres applications</source> - <translation>Allow to &modify other applications' volume</translation> - </message> - <message> - <source>PushButton</source> - <translation>PushButton</translation> - </message> -</context> -</TS> diff --git a/sflphone-qt/configurationmanager-introspec.xml b/sflphone-qt/configurationmanager-introspec.xml deleted file mode 100644 index ffb70e963f96a4e8a132c59bce089668ab79db8a..0000000000000000000000000000000000000000 --- a/sflphone-qt/configurationmanager-introspec.xml +++ /dev/null @@ -1,275 +0,0 @@ -<?xml version="1.0" ?> -<node name="/org/sflphone/SFLphone"> - <interface name="org.sflphone.SFLphone.ConfigurationManager"> - - <!-- Accounts-related methods --> - <method name="getAccountDetails"> - <arg type="s" name="accountID" direction="in"/> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="MapStringString"/> - <arg type="a{ss}" name="details" direction="out"/> - </method> - - <method name="setAccountDetails"> - <annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="MapStringString"/> - <arg type="s" name="accountID" direction="in"/> - <arg type="a{ss}" name="details" direction="in"/> - </method> - - <method name="addAccount"> - <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="MapStringString"/> - <arg type="a{ss}" name="details" direction="in"/> - <arg type="s" name="createdAccountId" direction="out"/> - </method> - - <method name="removeAccount"> - <arg type="s" name="accoundID" direction="in"/> - </method> - - <method name="getAccountList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="sendRegister"> - <arg type="s" name="accountID" direction="in"/> - <arg type="i" name="expire" direction="in"/> - </method> - - <!-- /////////////////////// --> - - <!-- Various audio-related methods --> - - <method name="getToneLocaleList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="getVersion"> - <arg type="s" name="version" direction="out"/> - </method> - - <method name="getRingtoneList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="getPlaybackDeviceList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="getRecordDeviceList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="isRingtoneEnabled"> - <arg type="i" name="bool" direction="out"/> - </method> - - <method name="ringtoneEnabled"> - </method> - - <method name="getRingtoneChoice"> - <arg type="s" name="tone" direction="out"/> - </method> - - <method name="setRingtoneChoice"> - <arg type="s" name="tone" direction="in"/> - </method> - - <method name="getAudioManager"> - <arg type="i" name="api" direction="out"/> - </method> - - <method name="setAudioManager"> - <arg type="i" name="api" direction="in"/> - </method> - - <!-- /////////////////////// --> - - <!-- Codecs-related methods --> - - <method name="getCodecList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="getCodecDetails"> - <arg type="i" name="payload" direction="in"/> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="details" direction="out"/> - </method> - - <method name="getActiveCodecList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="setActiveCodecList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="VectorString"/> - <arg type="as" name="list" direction="in"/> - </method> - - - <!-- Audio devices methods --> - - <method name="getInputAudioPluginList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="getOutputAudioPluginList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="setInputAudioPlugin"> - <arg type="s" name="audioPlugin" direction="in"/> - </method> - - <method name="setOutputAudioPlugin"> - <arg type="s" name="audioPlugin" direction="in"/> - </method> - - <method name="getAudioOutputDeviceList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="setAudioOutputDevice"> - <arg type="i" name="index" direction="in"/> - </method> - - <method name="getAudioInputDeviceList"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="setAudioInputDevice"> - <arg type="i" name="index" direction="in"/> - </method> - - <method name="getCurrentAudioDevicesIndex"> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> - <arg type="as" name="list" direction="out"/> - </method> - - <method name="getAudioDeviceIndex"> - <arg type="s" name="name" direction="in"/> - <arg type="i" name="index" direction="out"/> - </method> - - <method name="getCurrentAudioOutputPlugin"> - <arg type="s" name="plugin" direction="out"/> - </method> - - <!-- General Settings Panel --> - - <method name="isIax2Enabled"> - <arg type="i" name="res" direction="out"/> - </method> - - <method name="setNotify"> - </method> - - <method name="getNotify"> - <arg type="i" name="level" direction="out"/> - </method> - - <method name="setMailNotify"> - </method> - - <method name="getMailNotify"> - <arg type="i" name="level" direction="out"/> - </method> - - <method name="getDialpad"> - <arg type="i" name="state" direction="out"/> - </method> - - <method name="setDialpad"> - </method> - - <method name="getSearchbar"> - <arg type="i" name="state" direction="out"/> - </method> - - <method name="setSearchbar"> - </method> - - <method name="getVolumeControls"> - <arg type="i" name="state" direction="out"/> - </method> - - <method name="setVolumeControls"> - </method> - - <method name="getMaxCalls"> - <arg type="i" name="calls" direction="out"/> - </method> - - <method name="setMaxCalls"> - <arg type="i" name="calls" direction="in"/> - </method> - - <method name="startHidden"> - </method> - - <method name="isStartHidden"> - <arg type="i" name="state" direction="out"/> - </method> - - <method name="popupMode"> - <arg type="i" name="state" direction="out"/> - </method> - - <method name="switchPopupMode"> - </method> - - <method name="setPulseAppVolumeControl"> - </method> - - <method name="getPulseAppVolumeControl"> - <arg type="i" name="state" direction="out"/> - </method> - - <method name="setSipPort"> - <arg type="i" name="port" direction="in"/> - </method> - - <method name="getSipPort"> - <arg type="i" name="port" direction="out"/> - </method> - - <method name="setStunServer"> - <arg type="s" name="server" direction="in"/> - </method> - - <method name="getStunServer"> - <arg type="s" name="server" direction="out"/> - </method> - - <method name="enableStun"> - </method> - - <method name="isStunEnabled"> - <arg type="i" name="state" direction="out"/> - </method> - - <!-- ///////////////////////////// --> - <signal name="parametersChanged"> - <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="MapStringString"/> - <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="MapStringString"/> - <arg type="a{ss}" name="details" direction="out"/> - </signal> - - <signal name="accountsChanged"> - </signal> - - <signal name="errorAlert"> - <arg type="i" name="code" direction="out"/> - </signal> - - </interface> -</node> diff --git a/sflphone-qt/daemon_interface.cpp b/sflphone-qt/daemon_interface.cpp deleted file mode 100644 index c6d316c988a78b519b49d60c515869608108b4ce..0000000000000000000000000000000000000000 --- a/sflphone-qt/daemon_interface.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This file was generated by dbusxml2cpp version 0.6 - * Command line was: dbusxml2cpp -c DaemonInterface -p daemon_interface_p.h:daemon_interface.cpp -i metatypes.h configurationmanager-introspec.xml - * - * dbusxml2cpp is Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). - * - * This is an auto-generated file. - * This file may have been hand-edited. Look for HAND-EDIT comments - * before re-generating it. - */ - -#include "daemon_interface_p.h" - -/* - * Implementation of interface class DaemonInterface - */ - -DaemonInterface::DaemonInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) - : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) -{ -} - -DaemonInterface::~DaemonInterface() -{ -} - diff --git a/sflphone-qt/daemon_interface_p.h b/sflphone-qt/daemon_interface_p.h deleted file mode 100644 index 891c5e61810ffdba5897a7b9838feac7afa1d877..0000000000000000000000000000000000000000 --- a/sflphone-qt/daemon_interface_p.h +++ /dev/null @@ -1,412 +0,0 @@ -/* - * This file was generated by dbusxml2cpp version 0.6 - * Command line was: dbusxml2cpp -c DaemonInterface -p daemon_interface_p.h:daemon_interface.cpp -i metatypes.h configurationmanager-introspec.xml - * - * dbusxml2cpp is Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). - * - * This is an auto-generated file. - * Do not edit! All changes made to it will be lost. - */ - -#ifndef DAEMON_INTERFACE_P_H_1235666747 -#define DAEMON_INTERFACE_P_H_1235666747 - -#include <QtCore/QObject> -#include <QtCore/QByteArray> -#include <QtCore/QList> -#include <QtCore/QMap> -#include <QtCore/QString> -#include <QtCore/QStringList> -#include <QtCore/QVariant> -#include <QtDBus/QtDBus> -#include "metatypes.h" - -/* - * Proxy class for interface org.sflphone.SFLphone.ConfigurationManager - */ -class DaemonInterface: public QDBusAbstractInterface -{ - Q_OBJECT -public: - static inline const char *staticInterfaceName() - { return "org.sflphone.SFLphone.ConfigurationManager"; } - -public: - DaemonInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); - - ~DaemonInterface(); - -public Q_SLOTS: // METHODS - inline QDBusReply<QString> addAccount(MapStringString details) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(details); - return callWithArgumentList(QDBus::Block, QLatin1String("addAccount"), argumentList); - } - - inline QDBusReply<void> enableStun() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("enableStun"), argumentList); - } - - inline QDBusReply<MapStringString> getAccountDetails(const QString &accountID) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(accountID); - return callWithArgumentList(QDBus::Block, QLatin1String("getAccountDetails"), argumentList); - } - - inline QDBusReply<QStringList> getAccountList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getAccountList"), argumentList); - } - - inline QDBusReply<QStringList> getActiveCodecList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getActiveCodecList"), argumentList); - } - - inline QDBusReply<int> getAudioDeviceIndex(const QString &name) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(name); - return callWithArgumentList(QDBus::Block, QLatin1String("getAudioDeviceIndex"), argumentList); - } - - inline QDBusReply<QStringList> getAudioInputDeviceList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getAudioInputDeviceList"), argumentList); - } - - inline QDBusReply<int> getAudioManager() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getAudioManager"), argumentList); - } - - inline QDBusReply<QStringList> getAudioOutputDeviceList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getAudioOutputDeviceList"), argumentList); - } - - inline QDBusReply<QStringList> getCodecDetails(int payload) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(payload); - return callWithArgumentList(QDBus::Block, QLatin1String("getCodecDetails"), argumentList); - } - - inline QDBusReply<QStringList> getCodecList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getCodecList"), argumentList); - } - - inline QDBusReply<QStringList> getCurrentAudioDevicesIndex() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getCurrentAudioDevicesIndex"), argumentList); - } - - inline QDBusReply<QString> getCurrentAudioOutputPlugin() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getCurrentAudioOutputPlugin"), argumentList); - } - - inline QDBusReply<int> getDialpad() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getDialpad"), argumentList); - } - - inline QDBusReply<QStringList> getInputAudioPluginList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getInputAudioPluginList"), argumentList); - } - - inline QDBusReply<int> getMailNotify() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getMailNotify"), argumentList); - } - - inline QDBusReply<int> getMaxCalls() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getMaxCalls"), argumentList); - } - - inline QDBusReply<int> getNotify() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getNotify"), argumentList); - } - - inline QDBusReply<QStringList> getOutputAudioPluginList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getOutputAudioPluginList"), argumentList); - } - - inline QDBusReply<QStringList> getPlaybackDeviceList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getPlaybackDeviceList"), argumentList); - } - - inline QDBusReply<int> getPulseAppVolumeControl() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getPulseAppVolumeControl"), argumentList); - } - - inline QDBusReply<QStringList> getRecordDeviceList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getRecordDeviceList"), argumentList); - } - - inline QDBusReply<QString> getRingtoneChoice() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getRingtoneChoice"), argumentList); - } - - inline QDBusReply<QStringList> getRingtoneList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getRingtoneList"), argumentList); - } - - inline QDBusReply<int> getSearchbar() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getSearchbar"), argumentList); - } - - inline QDBusReply<int> getSipPort() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getSipPort"), argumentList); - } - - inline QDBusReply<QString> getStunServer() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getStunServer"), argumentList); - } - - inline QDBusReply<QStringList> getToneLocaleList() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getToneLocaleList"), argumentList); - } - - inline QDBusReply<QString> getVersion() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getVersion"), argumentList); - } - - inline QDBusReply<int> getVolumeControls() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("getVolumeControls"), argumentList); - } - - inline QDBusReply<int> isIax2Enabled() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("isIax2Enabled"), argumentList); - } - - inline QDBusReply<int> isRingtoneEnabled() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("isRingtoneEnabled"), argumentList); - } - - inline QDBusReply<int> isStartHidden() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("isStartHidden"), argumentList); - } - - inline QDBusReply<int> isStunEnabled() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("isStunEnabled"), argumentList); - } - - inline QDBusReply<int> popupMode() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("popupMode"), argumentList); - } - - inline QDBusReply<void> removeAccount(const QString &accoundID) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(accoundID); - return callWithArgumentList(QDBus::Block, QLatin1String("removeAccount"), argumentList); - } - - inline QDBusReply<void> ringtoneEnabled() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("ringtoneEnabled"), argumentList); - } - - inline QDBusReply<void> sendRegister(const QString &accountID, int expire) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(accountID) << qVariantFromValue(expire); - return callWithArgumentList(QDBus::Block, QLatin1String("sendRegister"), argumentList); - } - - inline QDBusReply<void> setAccountDetails(const QString &accountID, MapStringString details) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(accountID) << qVariantFromValue(details); - return callWithArgumentList(QDBus::Block, QLatin1String("setAccountDetails"), argumentList); - } - - inline QDBusReply<void> setActiveCodecList(const QStringList &list) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(list); - return callWithArgumentList(QDBus::Block, QLatin1String("setActiveCodecList"), argumentList); - } - - inline QDBusReply<void> setAudioInputDevice(int index) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(index); - return callWithArgumentList(QDBus::Block, QLatin1String("setAudioInputDevice"), argumentList); - } - - inline QDBusReply<void> setAudioManager(int api) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(api); - return callWithArgumentList(QDBus::Block, QLatin1String("setAudioManager"), argumentList); - } - - inline QDBusReply<void> setAudioOutputDevice(int index) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(index); - return callWithArgumentList(QDBus::Block, QLatin1String("setAudioOutputDevice"), argumentList); - } - - inline QDBusReply<void> setDialpad() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("setDialpad"), argumentList); - } - - inline QDBusReply<void> setInputAudioPlugin(const QString &audioPlugin) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(audioPlugin); - return callWithArgumentList(QDBus::Block, QLatin1String("setInputAudioPlugin"), argumentList); - } - - inline QDBusReply<void> setMailNotify() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("setMailNotify"), argumentList); - } - - inline QDBusReply<void> setMaxCalls(int calls) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(calls); - return callWithArgumentList(QDBus::Block, QLatin1String("setMaxCalls"), argumentList); - } - - inline QDBusReply<void> setNotify() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("setNotify"), argumentList); - } - - inline QDBusReply<void> setOutputAudioPlugin(const QString &audioPlugin) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(audioPlugin); - return callWithArgumentList(QDBus::Block, QLatin1String("setOutputAudioPlugin"), argumentList); - } - - inline QDBusReply<void> setPulseAppVolumeControl() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("setPulseAppVolumeControl"), argumentList); - } - - inline QDBusReply<void> setRingtoneChoice(const QString &tone) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(tone); - return callWithArgumentList(QDBus::Block, QLatin1String("setRingtoneChoice"), argumentList); - } - - inline QDBusReply<void> setSearchbar() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("setSearchbar"), argumentList); - } - - inline QDBusReply<void> setSipPort(int port) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(port); - return callWithArgumentList(QDBus::Block, QLatin1String("setSipPort"), argumentList); - } - - inline QDBusReply<void> setStunServer(const QString &server) - { - QList<QVariant> argumentList; - argumentList << qVariantFromValue(server); - return callWithArgumentList(QDBus::Block, QLatin1String("setStunServer"), argumentList); - } - - inline QDBusReply<void> setVolumeControls() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("setVolumeControls"), argumentList); - } - - inline QDBusReply<void> startHidden() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("startHidden"), argumentList); - } - - inline QDBusReply<void> switchPopupMode() - { - QList<QVariant> argumentList; - return callWithArgumentList(QDBus::Block, QLatin1String("switchPopupMode"), argumentList); - } - -Q_SIGNALS: // SIGNALS - void accountsChanged(); - void errorAlert(int code); - void parametersChanged(MapStringString details); -}; - -namespace org { - namespace sflphone { - namespace SFLphone { - typedef ::DaemonInterface ConfigurationManager; - } - } -} -#endif diff --git a/sflphone-qt/daemon_interface_singleton.cpp b/sflphone-qt/daemon_interface_singleton.cpp deleted file mode 100644 index 7257b97a1d875c95c9915114c063eb83ae94c395..0000000000000000000000000000000000000000 --- a/sflphone-qt/daemon_interface_singleton.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include "daemon_interface_singleton.h" - - -DaemonInterface * DaemonInterfaceSingleton::daemon = new DaemonInterface("org.sflphone.SFLphone", "/org/sflphone/SFLphone/ConfigurationManager", QDBusConnection::sessionBus()); - - -DaemonInterface & DaemonInterfaceSingleton::getInstance(){ - if(!daemon){ - daemon = new DaemonInterface("org.sflphone.SFLphone", "/org/sflphone/SFLphone/ConfigurationManager", QDBusConnection::sessionBus()); - } - return *daemon; -} - \ No newline at end of file diff --git a/sflphone-qt/daemon_interface_singleton.h b/sflphone-qt/daemon_interface_singleton.h deleted file mode 100644 index 35c21ae01755b5531962db9008a00afcb91e6340..0000000000000000000000000000000000000000 --- a/sflphone-qt/daemon_interface_singleton.h +++ /dev/null @@ -1,15 +0,0 @@ -#include "daemon_interface_p.h" - -class DaemonInterfaceSingleton -{ - -private: - - static DaemonInterface * daemon; - -public: - - //TODO verifier pointeur ou pas pour singleton en c++ - static DaemonInterface & getInstance(); - -}; diff --git a/sflphone-qt/hang_up.svg b/sflphone-qt/hang_up.svg deleted file mode 100644 index 8fa89cfe6e7eb35f4102ecfbdbc598fd183408c2..0000000000000000000000000000000000000000 --- a/sflphone-qt/hang_up.svg +++ /dev/null @@ -1,772 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="24" - height="24" - id="svg2" - sodipodi:version="0.32" - inkscape:version="0.46" - version="1.0" - sodipodi:docbase="/home/plbeaudoin/SFLPhone/sflphone/sflphone-gtk/pixmaps" - sodipodi:docname="hang_up.svg" - inkscape:output_extension="org.inkscape.output.svg.inkscape" - sodipodi:modified="true"> - <defs - id="defs4"> - <linearGradient - inkscape:collect="always" - id="linearGradient2500"> - <stop - style="stop-color:#800000;stop-opacity:1;" - offset="0" - id="stop2502" /> - <stop - style="stop-color:#800000;stop-opacity:0;" - offset="1" - id="stop2504" /> - </linearGradient> - <inkscape:perspective - sodipodi:type="inkscape:persp3d" - inkscape:vp_x="0 : 12 : 1" - inkscape:vp_y="0 : 1000 : 0" - inkscape:vp_z="24 : 12 : 1" - inkscape:persp3d-origin="12 : 8 : 1" - id="perspective127" /> - <linearGradient - id="linearGradient4357" - inkscape:collect="always"> - <stop - id="stop4359" - offset="0" - style="stop-color:#b00000;stop-opacity:1" /> - <stop - id="stop4361" - offset="1" - style="stop-color:#b02100;stop-opacity:0" /> - </linearGradient> - <linearGradient - inkscape:collect="always" - id="linearGradient4269"> - <stop - style="stop-color:#b00014;stop-opacity:1;" - offset="0" - id="stop4271" /> - <stop - style="stop-color:#b00014;stop-opacity:0;" - offset="1" - id="stop4273" /> - </linearGradient> - <linearGradient - id="linearGradient4183"> - <stop - id="stop4185" - offset="0" - style="stop-color:#b00014;stop-opacity:1;" /> - <stop - id="stop4187" - offset="1" - style="stop-color:#70000c;stop-opacity:1;" /> - </linearGradient> - <linearGradient - id="linearGradient4167"> - <stop - style="stop-color:#80000e;stop-opacity:1;" - offset="0" - id="stop4169" /> - <stop - style="stop-color:#b00014;stop-opacity:0;" - offset="1" - id="stop4171" /> - </linearGradient> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4167" - id="linearGradient4173" - x1="7.1249466" - y1="23.946518" - x2="20.06057" - y2="16.478132" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(6.313453e-2,-0.384275)" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4357" - id="linearGradient4275" - x1="15.630395" - y1="22.874208" - x2="15.806232" - y2="6.6770978" - gradientUnits="userSpaceOnUse" - gradientTransform="matrix(1.158192,0,0,1.158192,-6.593576,-2.538854)" /> - <linearGradient - id="linearGradient2278"> - <stop - style="stop-color:#ffffff;stop-opacity:0" - offset="0" - id="stop2280" /> - <stop - style="stop-color:#fefee7;stop-opacity:0.89308178" - offset="1" - id="stop2282" /> - </linearGradient> - <linearGradient - id="linearGradient2284"> - <stop - style="stop-color:#1db000;stop-opacity:1;" - offset="0" - id="stop2286" /> - <stop - style="stop-color:#1db000;stop-opacity:0;" - offset="1" - id="stop2288" /> - </linearGradient> - <linearGradient - id="linearGradient2290"> - <stop - id="stop2292" - offset="0" - style="stop-color:#1db000;stop-opacity:1;" /> - <stop - id="stop2294" - offset="1" - style="stop-color:#0f5f00;stop-opacity:1;" /> - </linearGradient> - <linearGradient - id="linearGradient2392"> - <stop - style="stop-color:#80000e;stop-opacity:1;" - offset="0" - id="stop2394" /> - <stop - style="stop-color:#b00014;stop-opacity:0;" - offset="1" - id="stop2396" /> - </linearGradient> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4183" - id="linearGradient2390" - x1="16.826796" - y1="6.7288713" - x2="27.5625" - y2="22.512505" - gradientUnits="userSpaceOnUse" - gradientTransform="matrix(0.875025,0,0,0.875025,0.666703,0.177907)" /> - <linearGradient - y2="13.920053" - x2="6.8378897" - y1="12.625902" - x1="2.0651877" - gradientTransform="matrix(-1,0,0,1,32.04188,-2.86473)" - gradientUnits="userSpaceOnUse" - id="linearGradient2304" - xlink:href="#linearGradient4269" - inkscape:collect="always" /> - <linearGradient - gradientTransform="translate(0.426158,-2.762136)" - gradientUnits="userSpaceOnUse" - y2="13.920053" - x2="6.8378897" - y1="12.625902" - x1="2.0651877" - id="linearGradient2306" - xlink:href="#linearGradient4269" - inkscape:collect="always" /> - <linearGradient - gradientUnits="userSpaceOnUse" - y2="10.576721" - x2="14.013638" - y1="2.7028866" - x1="15.647213" - id="linearGradient2386" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - gradientTransform="translate(-0.947018,-0.885198)" - gradientUnits="userSpaceOnUse" - y2="12.535715" - x2="31.31678" - y1="12.535715" - x1="24.397505" - id="linearGradient2310" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - gradientTransform="translate(1.262691,-1.100752)" - gradientUnits="userSpaceOnUse" - y2="12.825893" - x2="7.9239235" - y1="12.825893" - x1="1.0046476" - id="linearGradient2312" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - id="linearGradient2380"> - <stop - id="stop2316" - offset="0" - style="stop-color:#80000e;stop-opacity:1;" /> - <stop - id="stop2318" - offset="1" - style="stop-color:#b00014;stop-opacity:0;" /> - </linearGradient> - <linearGradient - id="linearGradient2376"> - <stop - style="stop-color:#26b000;stop-opacity:1;" - offset="0" - id="stop2322" /> - <stop - style="stop-color:#145f00;stop-opacity:1;" - offset="1" - id="stop2324" /> - </linearGradient> - <linearGradient - id="linearGradient2326"> - <stop - id="stop2328" - offset="0" - style="stop-color:#26b000;stop-opacity:1;" /> - <stop - id="stop2330" - offset="1" - style="stop-color:#26b000;stop-opacity:0;" /> - </linearGradient> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4183" - id="linearGradient2332" - gradientUnits="userSpaceOnUse" - x1="15.647213" - y1="2.7028866" - x2="14.013638" - y2="10.576721" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4183" - id="linearGradient2334" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(1.262691,-1.100752)" - x1="10.57493" - y1="12.115559" - x2="-0.68574232" - y2="12.115559" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4183" - id="linearGradient2336" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(-0.947018,-0.885198)" - x1="31.692968" - y1="11.264216" - x2="23.888865" - y2="13.35532" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4269" - id="linearGradient2338" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(0.426158,-2.762136)" - x1="7.8517423" - y1="15.912388" - x2="7.1114841" - y2="11.597325" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4269" - id="linearGradient2340" - gradientUnits="userSpaceOnUse" - gradientTransform="matrix(-1,0,0,1,32.04188,-2.86473)" - x1="2.0651877" - y1="12.625902" - x2="6.8378897" - y2="13.920053" /> - <radialGradient - inkscape:collect="always" - xlink:href="#linearGradient4045" - id="radialGradient2342" - cx="19.285715" - cy="9.8571424" - fx="19.285715" - fy="9.8571424" - r="10.885714" - gradientUnits="userSpaceOnUse" - spreadMethod="reflect" - gradientTransform="matrix(0.418975,2.444023e-18,-2.444023e-18,0.418975,11.20548,5.727248)" /> - <linearGradient - gradientTransform="matrix(1.256521,0,0,-1.256521,-7.854319,28.773309)" - gradientUnits="userSpaceOnUse" - y2="8.5305319" - x2="15.630395" - y1="22.874208" - x1="15.630395" - id="linearGradient2444" - xlink:href="#linearGradient4269" - inkscape:collect="always" /> - <linearGradient - y2="13.920053" - x2="6.8378897" - y1="12.625902" - x1="2.0651877" - gradientTransform="matrix(-1,0,0,1,31.179578,-2.86473)" - gradientUnits="userSpaceOnUse" - id="linearGradient2442" - xlink:href="#linearGradient4269" - inkscape:collect="always" /> - <linearGradient - gradientTransform="translate(1.1362892,-2.762136)" - gradientUnits="userSpaceOnUse" - y2="13.920053" - x2="6.8378897" - y1="12.625902" - x1="2.0651877" - id="linearGradient2440" - xlink:href="#linearGradient4269" - inkscape:collect="always" /> - <linearGradient - gradientUnits="userSpaceOnUse" - y2="10.576721" - x2="14.013638" - y1="2.7028866" - x1="15.647213" - id="linearGradient2438" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - gradientTransform="translate(-1.9107675,-0.885198)" - gradientUnits="userSpaceOnUse" - y2="12.535715" - x2="31.31678" - y1="12.535715" - x1="24.397505" - id="linearGradient2436" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - gradientTransform="translate(1.9220986,-1.100752)" - gradientUnits="userSpaceOnUse" - y2="12.825893" - x2="7.9239235" - y1="12.825893" - x1="1.0046476" - id="linearGradient2434" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - id="linearGradient2428"> - <stop - id="stop2430" - offset="0" - style="stop-color:#80000e;stop-opacity:1;" /> - <stop - id="stop2432" - offset="1" - style="stop-color:#b00014;stop-opacity:0;" /> - </linearGradient> - <linearGradient - id="linearGradient2422"> - <stop - style="stop-color:#26b000;stop-opacity:1;" - offset="0" - id="stop2424" /> - <stop - style="stop-color:#145f00;stop-opacity:1;" - offset="1" - id="stop2426" /> - </linearGradient> - <linearGradient - id="linearGradient2416"> - <stop - id="stop2418" - offset="0" - style="stop-color:#26b000;stop-opacity:1;" /> - <stop - id="stop2420" - offset="1" - style="stop-color:#26b000;stop-opacity:0;" /> - </linearGradient> - <radialGradient - gradientTransform="matrix(0.418975,0,0,0.418975,11.20548,5.727248)" - spreadMethod="reflect" - gradientUnits="userSpaceOnUse" - r="10.885714" - fy="9.8571424" - fx="19.285715" - cy="9.8571424" - cx="19.285715" - id="radialGradient4051" - xlink:href="#linearGradient4045" - inkscape:collect="always" /> - <linearGradient - y2="13.920053" - x2="6.8378897" - y1="12.625902" - x1="2.0651877" - gradientTransform="matrix(-1,0,0,1,32.04188,-2.86473)" - gradientUnits="userSpaceOnUse" - id="linearGradient1414" - xlink:href="#linearGradient4269" - inkscape:collect="always" /> - <linearGradient - y2="11.597325" - x2="7.1114841" - y1="15.912388" - x1="7.8517423" - gradientTransform="translate(0.426158,-2.762136)" - gradientUnits="userSpaceOnUse" - id="linearGradient1412" - xlink:href="#linearGradient4269" - inkscape:collect="always" /> - <linearGradient - y2="13.35532" - x2="23.888865" - y1="11.264216" - x1="31.692968" - gradientTransform="translate(-0.947018,-0.885198)" - gradientUnits="userSpaceOnUse" - id="linearGradient1410" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - y2="12.115559" - x2="-0.68574232" - y1="12.115559" - x1="10.57493" - gradientTransform="translate(1.262691,-1.100752)" - gradientUnits="userSpaceOnUse" - id="linearGradient1408" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - y2="10.576721" - x2="14.013638" - y1="2.7028866" - x1="15.647213" - gradientUnits="userSpaceOnUse" - id="linearGradient1406" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - id="linearGradient1362"> - <stop - style="stop-color:#26b000;stop-opacity:1;" - offset="0" - id="stop1364" /> - <stop - style="stop-color:#26b000;stop-opacity:0;" - offset="1" - id="stop1366" /> - </linearGradient> - <linearGradient - id="linearGradient1368"> - <stop - id="stop1370" - offset="0" - style="stop-color:#26b000;stop-opacity:1;" /> - <stop - id="stop1372" - offset="1" - style="stop-color:#145f00;stop-opacity:1;" /> - </linearGradient> - <linearGradient - id="linearGradient1374"> - <stop - style="stop-color:#80000e;stop-opacity:1;" - offset="0" - id="stop1376" /> - <stop - style="stop-color:#b00014;stop-opacity:0;" - offset="1" - id="stop1378" /> - </linearGradient> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4183" - id="linearGradient1380" - x1="1.0046476" - y1="12.825893" - x2="7.9239235" - y2="12.825893" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(1.262691,-1.100752)" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4183" - id="linearGradient1382" - x1="24.397505" - y1="12.535715" - x2="31.31678" - y2="12.535715" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(-0.947018,-0.885198)" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4183" - id="linearGradient1384" - x1="15.647213" - y1="2.7028866" - x2="14.013638" - y2="10.576721" - gradientUnits="userSpaceOnUse" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4269" - id="linearGradient1386" - x1="2.0651877" - y1="12.625902" - x2="6.8378897" - y2="13.920053" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(0.426158,-2.762136)" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4269" - id="linearGradient1388" - gradientUnits="userSpaceOnUse" - gradientTransform="matrix(-1,0,0,1,32.04188,-2.86473)" - x1="2.0651877" - y1="12.625902" - x2="6.8378897" - y2="13.920053" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient4269" - id="linearGradient2325" - x1="15.630395" - y1="22.874208" - x2="15.806232" - y2="6.6770978" - gradientUnits="userSpaceOnUse" - gradientTransform="matrix(1.62913,0,0,-1.62913,-10.06608,39.71987)" /> - <linearGradient - gradientTransform="matrix(0.875025,0,0,0.875025,0.666703,0.177907)" - gradientUnits="userSpaceOnUse" - y2="22.512505" - x2="27.5625" - y1="6.7288713" - x1="16.826796" - id="linearGradient2224" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - y2="13.920053" - x2="6.8378897" - y1="12.625902" - x1="2.0651877" - gradientTransform="matrix(-1,0,0,1,32.04188,-2.86473)" - gradientUnits="userSpaceOnUse" - id="linearGradient2322" - xlink:href="#linearGradient4269" - inkscape:collect="always" /> - <linearGradient - gradientTransform="translate(0.426158,-2.762136)" - gradientUnits="userSpaceOnUse" - y2="11.597325" - x2="7.1114841" - y1="15.912388" - x1="7.8517423" - id="linearGradient2320" - xlink:href="#linearGradient4269" - inkscape:collect="always" /> - <linearGradient - gradientUnits="userSpaceOnUse" - y2="10.576721" - x2="14.013638" - y1="2.7028866" - x1="15.647213" - id="linearGradient2318" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - gradientTransform="translate(-0.947018,-0.885198)" - gradientUnits="userSpaceOnUse" - y2="13.35532" - x2="23.888865" - y1="11.264216" - x1="31.692968" - id="linearGradient2316" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - gradientTransform="translate(1.262691,-1.100752)" - gradientUnits="userSpaceOnUse" - y2="12.115559" - x2="-0.68574232" - y1="12.115559" - x1="10.57493" - id="linearGradient2314" - xlink:href="#linearGradient4183" - inkscape:collect="always" /> - <linearGradient - id="linearGradient2308"> - <stop - id="stop2310" - offset="0" - style="stop-color:#80000e;stop-opacity:1;" /> - <stop - id="stop2312" - offset="1" - style="stop-color:#b00014;stop-opacity:0;" /> - </linearGradient> - <linearGradient - id="linearGradient2302"> - <stop - style="stop-color:#1db000;stop-opacity:1;" - offset="0" - id="stop2304" /> - <stop - style="stop-color:#0f5f00;stop-opacity:1;" - offset="1" - id="stop2306" /> - </linearGradient> - <linearGradient - id="linearGradient2296"> - <stop - id="stop2298" - offset="0" - style="stop-color:#1db000;stop-opacity:1;" /> - <stop - id="stop2300" - offset="1" - style="stop-color:#1db000;stop-opacity:0;" /> - </linearGradient> - <linearGradient - id="linearGradient4045"> - <stop - id="stop4047" - offset="0" - style="stop-color:#ffffff;stop-opacity:0" /> - <stop - id="stop4049" - offset="1" - style="stop-color:#fcfbcb;stop-opacity:1" /> - </linearGradient> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient2500" - id="linearGradient2506" - x1="4.9409747" - y1="16.528652" - x2="6.2092013" - y2="-3.3282857" - gradientUnits="userSpaceOnUse" /> - </defs> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="22.4" - inkscape:cx="16.277456" - inkscape:cy="16.683708" - inkscape:document-units="px" - inkscape:current-layer="layer1" - width="32px" - height="32px" - showguides="true" - inkscape:guide-bbox="true" - inkscape:window-width="1014" - inkscape:window-height="722" - inkscape:window-x="5" - inkscape:window-y="49" - showgrid="false"> - <sodipodi:guide - orientation="horizontal" - position="8.0357143" - id="guide3144" /> - <sodipodi:guide - orientation="vertical" - position="15.982143" - id="guide3146" /> - </sodipodi:namedview> - <metadata - id="metadata7"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Calque 1" - inkscape:groupmode="layer" - id="layer1"> - <path - style="opacity:1;fill:url(#linearGradient4275);fill-opacity:1;stroke:none;stroke-width:0.625;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - d="M 7.4133112,3.7940921 L 7.4133112,15.267435 L 3.6853797,15.267435 L 11.9375,23.953878 L 20.18962,15.267435 L 16.461688,15.267435 L 16.461688,3.7940921 L 7.4133112,3.7940921 z " - id="rect4262" /> - <g - id="g2407" - inkscape:label="Calque 1" - transform="matrix(-0.5,0.8660254,-0.8660254,-0.5,28.570435,0.9317453)" - style="fill:url(#linearGradient2506);fill-opacity:1"> - <g - transform="translate(14.730114,-3.4355522)" - inkscape:label="Calque 1" - id="g2364" - style="fill:url(#linearGradient2506);fill-opacity:1.0"> - <g - id="g2446" - inkscape:label="Calque 1" - transform="translate(7.9455775,4.2707653)" - style="fill:url(#linearGradient2506);fill-opacity:1.0"> - <g - style="fill:url(#linearGradient2506);stroke:#000000;stroke-opacity:0.44968554999999999;fill-opacity:1.0" - transform="matrix(-0.4376782,-0.758081,0.7581751,-0.4377326,3.5952686,30.820492)" - id="g2181"> - <path - sodipodi:nodetypes="csccczccsccccc" - id="path2183" - d="M 41.109694,-0.41817229 C 40.505298,0.20454826 39.040867,0.77635346 37.592239,0.77635106 C 36.102089,0.77635106 34.114653,0.15682998 33.532659,-0.49267807 L 33.569913,-2.0031726 L 33.569913,-3.0835065 C 31.027414,-3.5787101 30.997014,-3.8285637 27.525623,-3.8285643 C 24.054233,-3.8285649 23.830777,-3.5759718 21.29017,-3.0462535 L 21.29017,-0.3436665 C 20.685773,0.27905404 19.221343,0.87609843 17.772714,0.87609724 C 16.282564,0.87609724 14.623294,0.43325774 13.915083,-0.41817229 L 14.138601,-5.7646408 C 18.129172,-7.3187814 22.030595,-8.3970767 27.437882,-8.5586077 C 32.38601,-8.450833 36.259126,-7.7053161 40.886177,-5.8763994 L 41.109694,-0.41817229 z " - style="opacity:1;fill:url(#linearGradient2506);fill-opacity:1.0;stroke:#000000;stroke-width:0.65573961000000003;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.44968554999999999" /> - </g> - <g - transform="matrix(-0.4400595,-0.7622054,0.7622054,-0.4400595,-10.917299,27.830684)" - id="g2451" - style="fill:url(#linearGradient2506);fill-opacity:1.0"> - <path - style="opacity:1;fill:url(#linearGradient2506);fill-opacity:1.0;stroke:#561500;stroke-width:0.62500000000000000;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - d="M 16.100095,4.59375 C 10.946289,4.7477067 7.2256019,5.7999634 3.4220983,7.28125 L 3.2345983,10.227679 C 3.7846813,10.972881 5.0136533,11.508929 6.4220983,11.508929 C 7.7912983,11.508929 8.9758403,11.004648 9.5470983,10.290179 L 9.5470983,9.1875 C 11.968608,8.682612 12.862258,8.4375 16.125,8.4375 C 19.479577,8.4375001 20.38467,8.6842603 22.807982,9.15625 L 22.807982,10.165179 C 23.37924,10.879648 24.563781,11.383929 25.932982,11.383929 C 27.341427,11.383929 28.53915,10.847881 29.089232,10.102679 L 28.901732,7.15625 C 24.491586,5.413068 20.816266,4.6964725 16.100095,4.59375 z " - id="path2453" - sodipodi:nodetypes="cccsccsccsccc" /> - <path - style="opacity:1;fill:url(#linearGradient2506);fill-opacity:1.0;stroke:#561500;stroke-width:0.57204323999999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - d="M 6.4075414,13.019293 C 7.7882612,13.019293 8.983936,12.610489 9.5600003,12.01696 L 9.5600003,10.430989 C 8.8231919,11.109285 7.789205,11.494948 6.4075414,11.494948 C 4.9854414,11.494948 3.9881276,11.13019 3.2127675,10.48174 L 3.2127675,11.966208 C 3.7674786,12.585269 4.9872465,13.019293 6.4075414,13.019293 z " - id="path2455" - sodipodi:nodetypes="cccsccc" /> - <path - style="opacity:1;fill:url(#linearGradient2506);fill-opacity:1.0;stroke:#561500;stroke-width:0.57204323999999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - d="M 25.967532,12.944669 C 27.348252,12.944669 28.543927,12.535865 29.119991,11.942336 L 29.119991,10.356365 C 28.383183,11.034661 27.349196,11.420324 25.967532,11.420324 C 24.545432,11.420324 23.548118,11.055566 22.772758,10.407116 L 22.772758,11.891584 C 23.327469,12.510645 24.547237,12.944669 25.967532,12.944669 z " - id="path2457" - sodipodi:nodetypes="cccsccc" /> - <path - style="opacity:1;fill:url(#linearGradient2506);fill-opacity:1.0;stroke:none;stroke-width:0.57204323999999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - d="M 6.6822725,11.157918 C 8.0629923,11.157918 8.7535908,10.73333 9.3296551,10.139801 L 9.0644746,7.3100024 C 8.3276662,7.9882984 8.1270706,8.5445024 6.745407,8.5445024 C 5.323307,8.5445024 4.4996132,8.1797444 3.7242531,7.5312944 L 3.4874986,10.104833 C 4.0422097,10.723894 5.2619776,11.157918 6.6822725,11.157918 z " - id="path2459" - sodipodi:nodetypes="cccsccc" /> - <path - style="opacity:1;fill:url(#linearGradient2506);fill-opacity:1.0;stroke:none;stroke-width:0.57204323999999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - d="M 25.633599,11.055324 C 24.252879,11.055324 23.56228,10.630736 22.986216,10.037207 L 22.418005,7.3779497 C 23.154814,8.0562457 24.188801,8.4419087 25.570464,8.4419087 C 26.992564,8.4419087 27.816258,8.0771507 28.591618,7.4287007 L 28.828373,10.002239 C 28.273662,10.6213 27.053894,11.055324 25.633599,11.055324 z " - id="path2461" - sodipodi:nodetypes="cccsccc" /> - </g> - </g> - </g> - </g> - </g> -</svg> diff --git a/sflphone-qt/main.cpp b/sflphone-qt/main.cpp deleted file mode 100644 index 521ca5597c4362cff35b38f0e5a190dafda4a4cd..0000000000000000000000000000000000000000 --- a/sflphone-qt/main.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include <QApplication> -#include <QtGui> -#include "ConfigDialog.h" - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - QString locale = QLocale::system().name(); - - QTranslator translator; - translator.load(QString("config_") + locale); - app.installTranslator(&translator); - - ConfigurationDialog fenetre; - fenetre.show(); - - return app.exec(); -} diff --git a/sflphone-qt/metatypes.h b/sflphone-qt/metatypes.h deleted file mode 100644 index 4f308db1d2b51db1072f70474cb13412bb95fec1..0000000000000000000000000000000000000000 --- a/sflphone-qt/metatypes.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef METATYPES_H -#define METATYPES_H - -#include <QtCore/QList> -#include <QtCore/QMetaType> -#include <QtDBus/QtDBus> -#include <qmap.h> -#include <qstring.h> - -//class MapStringString:public QMap<QString, QString>{}; -typedef QMap<QString, QString> MapStringString; -typedef QVector<QString> VectorString; - -Q_DECLARE_METATYPE(MapStringString) -//Q_DECLARE_METATYPE(VectorString) - - -inline void registerCommTypes() { - qDBusRegisterMetaType<MapStringString>(); - //qDBusRegisterMetaType<VectorString>(); -} - -#endif \ No newline at end of file diff --git a/sflphone-qt/moc_ConfigDialog.cpp b/sflphone-qt/moc_ConfigDialog.cpp deleted file mode 100644 index cee30eab10c23bcfc10d5ca55be39508fdf22f2a..0000000000000000000000000000000000000000 --- a/sflphone-qt/moc_ConfigDialog.cpp +++ /dev/null @@ -1,89 +0,0 @@ -/**************************************************************************** -** Meta object code from reading C++ file 'ConfigDialog.h' -** -** Created: Thu Feb 26 14:45:20 2009 -** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3) -** -** WARNING! All changes made in this file will be lost! -*****************************************************************************/ - -#include "ConfigDialog.h" -#if !defined(Q_MOC_OUTPUT_REVISION) -#error "The header file 'ConfigDialog.h' doesn't include <QObject>." -#elif Q_MOC_OUTPUT_REVISION != 59 -#error "This file was generated using the moc from 4.4.3. It" -#error "cannot be used with the include files from this version of Qt." -#error "(The moc has changed too much.)" -#endif - -QT_BEGIN_MOC_NAMESPACE -static const uint qt_meta_data_ConfigurationDialog[] = { - - // content: - 1, // revision - 0, // classname - 0, 0, // classinfo - 6, 10, // methods - 0, 0, // properties - 0, 0, // enums/sets - - // slots: signature, parameters, type, tag, flags - 21, 20, 20, 20, 0x08, - 56, 20, 20, 20, 0x08, - 94, 89, 20, 20, 0x08, - 147, 130, 20, 20, 0x08, - 228, 222, 20, 20, 0x08, - 272, 265, 20, 20, 0x08, - - 0 // eod -}; - -static const char qt_meta_stringdata_ConfigurationDialog[] = { - "ConfigurationDialog\0\0" - "on_buttonSupprimerCompte_clicked()\0" - "on_buttonNouveauCompte_clicked()\0text\0" - "on_edit1_Alias_textChanged(QString)\0" - "current,previous\0" - "on_listWidgetComptes_currentItemChanged(QListWidgetItem*,QListWidgetIt" - "em*)\0" - "value\0on_spinBox_PortSIP_valueChanged(int)\0" - "button\0on_buttonBoxDialog_clicked(QAbstractButton*)\0" -}; - -const QMetaObject ConfigurationDialog::staticMetaObject = { - { &QDialog::staticMetaObject, qt_meta_stringdata_ConfigurationDialog, - qt_meta_data_ConfigurationDialog, 0 } -}; - -const QMetaObject *ConfigurationDialog::metaObject() const -{ - return &staticMetaObject; -} - -void *ConfigurationDialog::qt_metacast(const char *_clname) -{ - if (!_clname) return 0; - if (!strcmp(_clname, qt_meta_stringdata_ConfigurationDialog)) - return static_cast<void*>(const_cast< ConfigurationDialog*>(this)); - return QDialog::qt_metacast(_clname); -} - -int ConfigurationDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) -{ - _id = QDialog::qt_metacall(_c, _id, _a); - if (_id < 0) - return _id; - if (_c == QMetaObject::InvokeMetaMethod) { - switch (_id) { - case 0: on_buttonSupprimerCompte_clicked(); break; - case 1: on_buttonNouveauCompte_clicked(); break; - case 2: on_edit1_Alias_textChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break; - case 3: on_listWidgetComptes_currentItemChanged((*reinterpret_cast< QListWidgetItem*(*)>(_a[1])),(*reinterpret_cast< QListWidgetItem*(*)>(_a[2]))); break; - case 4: on_spinBox_PortSIP_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break; - case 5: on_buttonBoxDialog_clicked((*reinterpret_cast< QAbstractButton*(*)>(_a[1]))); break; - } - _id -= 6; - } - return _id; -} -QT_END_MOC_NAMESPACE diff --git a/sflphone-qt/moc_daemon_interface_p.cpp b/sflphone-qt/moc_daemon_interface_p.cpp deleted file mode 100644 index df5e1fb361a5186f902c6786eb0a295fa6b308dc..0000000000000000000000000000000000000000 --- a/sflphone-qt/moc_daemon_interface_p.cpp +++ /dev/null @@ -1,310 +0,0 @@ -/**************************************************************************** -** Meta object code from reading C++ file 'daemon_interface_p.h' -** -** Created: Thu Feb 26 12:01:33 2009 -** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3) -** -** WARNING! All changes made in this file will be lost! -*****************************************************************************/ - -#include "daemon_interface_p.h" -#if !defined(Q_MOC_OUTPUT_REVISION) -#error "The header file 'daemon_interface_p.h' doesn't include <QObject>." -#elif Q_MOC_OUTPUT_REVISION != 59 -#error "This file was generated using the moc from 4.4.3. It" -#error "cannot be used with the include files from this version of Qt." -#error "(The moc has changed too much.)" -#endif - -QT_BEGIN_MOC_NAMESPACE -static const uint qt_meta_data_DaemonInterface[] = { - - // content: - 1, // revision - 0, // classname - 0, 0, // classinfo - 60, 10, // methods - 0, 0, // properties - 0, 0, // enums/sets - - // signals: signature, parameters, type, tag, flags - 17, 16, 16, 16, 0x05, - 40, 35, 16, 16, 0x05, - 64, 56, 16, 16, 0x05, - - // slots: signature, parameters, type, tag, flags - 119, 56, 99, 16, 0x0a, - 164, 16, 147, 16, 0x0a, - 215, 205, 177, 16, 0x0a, - 266, 16, 242, 16, 0x0a, - 283, 16, 242, 16, 0x0a, - 325, 320, 304, 16, 0x0a, - 354, 16, 242, 16, 0x0a, - 380, 16, 304, 16, 0x0a, - 398, 16, 242, 16, 0x0a, - 433, 425, 242, 16, 0x0a, - 454, 16, 242, 16, 0x0a, - 469, 16, 242, 16, 0x0a, - 499, 16, 99, 16, 0x0a, - 529, 16, 304, 16, 0x0a, - 542, 16, 242, 16, 0x0a, - 568, 16, 304, 16, 0x0a, - 584, 16, 304, 16, 0x0a, - 598, 16, 304, 16, 0x0a, - 610, 16, 242, 16, 0x0a, - 637, 16, 242, 16, 0x0a, - 661, 16, 304, 16, 0x0a, - 688, 16, 242, 16, 0x0a, - 710, 16, 99, 16, 0x0a, - 730, 16, 242, 16, 0x0a, - 748, 16, 304, 16, 0x0a, - 763, 16, 304, 16, 0x0a, - 776, 16, 99, 16, 0x0a, - 792, 16, 242, 16, 0x0a, - 812, 16, 99, 16, 0x0a, - 825, 16, 304, 16, 0x0a, - 845, 16, 304, 16, 0x0a, - 861, 16, 304, 16, 0x0a, - 881, 16, 304, 16, 0x0a, - 897, 16, 304, 16, 0x0a, - 913, 16, 304, 16, 0x0a, - 935, 925, 147, 16, 0x0a, - 958, 16, 147, 16, 0x0a, - 993, 976, 147, 16, 0x0a, - 1037, 1019, 147, 16, 0x0a, - 1085, 1080, 147, 16, 0x0a, - 1123, 1117, 147, 16, 0x0a, - 1152, 1148, 147, 16, 0x0a, - 1173, 1117, 147, 16, 0x0a, - 1199, 16, 147, 16, 0x0a, - 1224, 1212, 147, 16, 0x0a, - 1253, 16, 147, 16, 0x0a, - 1275, 1269, 147, 16, 0x0a, - 1292, 16, 147, 16, 0x0a, - 1304, 1212, 147, 16, 0x0a, - 1334, 16, 147, 16, 0x0a, - 1366, 1361, 147, 16, 0x0a, - 1393, 16, 147, 16, 0x0a, - 1413, 1408, 147, 16, 0x0a, - 1436, 1429, 147, 16, 0x0a, - 1459, 16, 147, 16, 0x0a, - 1479, 16, 147, 16, 0x0a, - 1493, 16, 147, 16, 0x0a, - - 0 // eod -}; - -static const char qt_meta_stringdata_DaemonInterface[] = { - "DaemonInterface\0\0accountsChanged()\0" - "code\0errorAlert(int)\0details\0" - "parametersChanged(MapStringString)\0" - "QDBusReply<QString>\0addAccount(MapStringString)\0" - "QDBusReply<void>\0enableStun()\0" - "QDBusReply<MapStringString>\0accountID\0" - "getAccountDetails(QString)\0" - "QDBusReply<QStringList>\0getAccountList()\0" - "getActiveCodecList()\0QDBusReply<int>\0" - "name\0getAudioDeviceIndex(QString)\0" - "getAudioInputDeviceList()\0getAudioManager()\0" - "getAudioOutputDeviceList()\0payload\0" - "getCodecDetails(int)\0getCodecList()\0" - "getCurrentAudioDevicesIndex()\0" - "getCurrentAudioOutputPlugin()\0" - "getDialpad()\0getInputAudioPluginList()\0" - "getMailNotify()\0getMaxCalls()\0getNotify()\0" - "getOutputAudioPluginList()\0" - "getPlaybackDeviceList()\0" - "getPulseAppVolumeControl()\0" - "getRecordDeviceList()\0getRingtoneChoice()\0" - "getRingtoneList()\0getSearchbar()\0" - "getSipPort()\0getStunServer()\0" - "getToneLocaleList()\0getVersion()\0" - "getVolumeControls()\0isIax2Enabled()\0" - "isRingtoneEnabled()\0isStartHidden()\0" - "isStunEnabled()\0popupMode()\0accoundID\0" - "removeAccount(QString)\0ringtoneEnabled()\0" - "accountID,expire\0sendRegister(QString,int)\0" - "accountID,details\0" - "setAccountDetails(QString,MapStringString)\0" - "list\0setActiveCodecList(QStringList)\0" - "index\0setAudioInputDevice(int)\0api\0" - "setAudioManager(int)\0setAudioOutputDevice(int)\0" - "setDialpad()\0audioPlugin\0" - "setInputAudioPlugin(QString)\0" - "setMailNotify()\0calls\0setMaxCalls(int)\0" - "setNotify()\0setOutputAudioPlugin(QString)\0" - "setPulseAppVolumeControl()\0tone\0" - "setRingtoneChoice(QString)\0setSearchbar()\0" - "port\0setSipPort(int)\0server\0" - "setStunServer(QString)\0setVolumeControls()\0" - "startHidden()\0switchPopupMode()\0" -}; - -const QMetaObject DaemonInterface::staticMetaObject = { - { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_DaemonInterface, - qt_meta_data_DaemonInterface, 0 } -}; - -const QMetaObject *DaemonInterface::metaObject() const -{ - return &staticMetaObject; -} - -void *DaemonInterface::qt_metacast(const char *_clname) -{ - if (!_clname) return 0; - if (!strcmp(_clname, qt_meta_stringdata_DaemonInterface)) - return static_cast<void*>(const_cast< DaemonInterface*>(this)); - return QDBusAbstractInterface::qt_metacast(_clname); -} - -int DaemonInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) -{ - _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); - if (_id < 0) - return _id; - if (_c == QMetaObject::InvokeMetaMethod) { - switch (_id) { - case 0: accountsChanged(); break; - case 1: errorAlert((*reinterpret_cast< int(*)>(_a[1]))); break; - case 2: parametersChanged((*reinterpret_cast< MapStringString(*)>(_a[1]))); break; - case 3: { QDBusReply<QString> _r = addAccount((*reinterpret_cast< MapStringString(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<QString>*>(_a[0]) = _r; } break; - case 4: { QDBusReply<void> _r = enableStun(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 5: { QDBusReply<MapStringString> _r = getAccountDetails((*reinterpret_cast< const QString(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<MapStringString>*>(_a[0]) = _r; } break; - case 6: { QDBusReply<QStringList> _r = getAccountList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 7: { QDBusReply<QStringList> _r = getActiveCodecList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 8: { QDBusReply<int> _r = getAudioDeviceIndex((*reinterpret_cast< const QString(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 9: { QDBusReply<QStringList> _r = getAudioInputDeviceList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 10: { QDBusReply<int> _r = getAudioManager(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 11: { QDBusReply<QStringList> _r = getAudioOutputDeviceList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 12: { QDBusReply<QStringList> _r = getCodecDetails((*reinterpret_cast< int(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 13: { QDBusReply<QStringList> _r = getCodecList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 14: { QDBusReply<QStringList> _r = getCurrentAudioDevicesIndex(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 15: { QDBusReply<QString> _r = getCurrentAudioOutputPlugin(); - if (_a[0]) *reinterpret_cast< QDBusReply<QString>*>(_a[0]) = _r; } break; - case 16: { QDBusReply<int> _r = getDialpad(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 17: { QDBusReply<QStringList> _r = getInputAudioPluginList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 18: { QDBusReply<int> _r = getMailNotify(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 19: { QDBusReply<int> _r = getMaxCalls(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 20: { QDBusReply<int> _r = getNotify(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 21: { QDBusReply<QStringList> _r = getOutputAudioPluginList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 22: { QDBusReply<QStringList> _r = getPlaybackDeviceList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 23: { QDBusReply<int> _r = getPulseAppVolumeControl(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 24: { QDBusReply<QStringList> _r = getRecordDeviceList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 25: { QDBusReply<QString> _r = getRingtoneChoice(); - if (_a[0]) *reinterpret_cast< QDBusReply<QString>*>(_a[0]) = _r; } break; - case 26: { QDBusReply<QStringList> _r = getRingtoneList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 27: { QDBusReply<int> _r = getSearchbar(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 28: { QDBusReply<int> _r = getSipPort(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 29: { QDBusReply<QString> _r = getStunServer(); - if (_a[0]) *reinterpret_cast< QDBusReply<QString>*>(_a[0]) = _r; } break; - case 30: { QDBusReply<QStringList> _r = getToneLocaleList(); - if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; } break; - case 31: { QDBusReply<QString> _r = getVersion(); - if (_a[0]) *reinterpret_cast< QDBusReply<QString>*>(_a[0]) = _r; } break; - case 32: { QDBusReply<int> _r = getVolumeControls(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 33: { QDBusReply<int> _r = isIax2Enabled(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 34: { QDBusReply<int> _r = isRingtoneEnabled(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 35: { QDBusReply<int> _r = isStartHidden(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 36: { QDBusReply<int> _r = isStunEnabled(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 37: { QDBusReply<int> _r = popupMode(); - if (_a[0]) *reinterpret_cast< QDBusReply<int>*>(_a[0]) = _r; } break; - case 38: { QDBusReply<void> _r = removeAccount((*reinterpret_cast< const QString(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 39: { QDBusReply<void> _r = ringtoneEnabled(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 40: { QDBusReply<void> _r = sendRegister((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 41: { QDBusReply<void> _r = setAccountDetails((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< MapStringString(*)>(_a[2]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 42: { QDBusReply<void> _r = setActiveCodecList((*reinterpret_cast< const QStringList(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 43: { QDBusReply<void> _r = setAudioInputDevice((*reinterpret_cast< int(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 44: { QDBusReply<void> _r = setAudioManager((*reinterpret_cast< int(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 45: { QDBusReply<void> _r = setAudioOutputDevice((*reinterpret_cast< int(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 46: { QDBusReply<void> _r = setDialpad(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 47: { QDBusReply<void> _r = setInputAudioPlugin((*reinterpret_cast< const QString(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 48: { QDBusReply<void> _r = setMailNotify(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 49: { QDBusReply<void> _r = setMaxCalls((*reinterpret_cast< int(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 50: { QDBusReply<void> _r = setNotify(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 51: { QDBusReply<void> _r = setOutputAudioPlugin((*reinterpret_cast< const QString(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 52: { QDBusReply<void> _r = setPulseAppVolumeControl(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 53: { QDBusReply<void> _r = setRingtoneChoice((*reinterpret_cast< const QString(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 54: { QDBusReply<void> _r = setSearchbar(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 55: { QDBusReply<void> _r = setSipPort((*reinterpret_cast< int(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 56: { QDBusReply<void> _r = setStunServer((*reinterpret_cast< const QString(*)>(_a[1]))); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 57: { QDBusReply<void> _r = setVolumeControls(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 58: { QDBusReply<void> _r = startHidden(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - case 59: { QDBusReply<void> _r = switchPopupMode(); - if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; } break; - } - _id -= 60; - } - return _id; -} - -// SIGNAL 0 -void DaemonInterface::accountsChanged() -{ - QMetaObject::activate(this, &staticMetaObject, 0, 0); -} - -// SIGNAL 1 -void DaemonInterface::errorAlert(int _t1) -{ - void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; - QMetaObject::activate(this, &staticMetaObject, 1, _a); -} - -// SIGNAL 2 -void DaemonInterface::parametersChanged(MapStringString _t1) -{ - void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; - QMetaObject::activate(this, &staticMetaObject, 2, _a); -} -QT_END_MOC_NAMESPACE diff --git a/sflphone-qt/sans kwidgets.pro b/sflphone-qt/sans kwidgets.pro deleted file mode 100644 index 4b5dff7f7451eb51455d933db0357a76ad02fb72..0000000000000000000000000000000000000000 --- a/sflphone-qt/sans kwidgets.pro +++ /dev/null @@ -1,27 +0,0 @@ -###################################################################### -# Automatically generated by qmake (2.01a) mer. f�vr. 18 11:08:41 2009 -###################################################################### - -TEMPLATE = app -TARGET = -DEPENDPATH += . -INCLUDEPATH += . -CONFIG += qdbus uitools debug - -# Input -HEADERS += Account.h \ - AccountList.h \ - ConfigDialog.h \ - daemon_interface_p.h \ - daemon_interface_singleton.h \ - metatypes.h \ - sflphone_const.h -FORMS += ConfigDialog.ui -SOURCES += Account.cpp \ - AccountList.cpp \ - ConfigDialog.cpp \ - daemon_interface.cpp \ - daemon_interface_singleton.cpp \ - main.cpp \ - sflphone_const.cpp -TRANSLATIONS += config_en.ts diff --git a/sflphone-qt/sflphone-qt b/sflphone-qt/sflphone-qt deleted file mode 100755 index 64bf304c30f5cdaca365726a2efbf64a81267f41..0000000000000000000000000000000000000000 Binary files a/sflphone-qt/sflphone-qt and /dev/null differ diff --git a/sflphone-qt/sflphone-qt.pro b/sflphone-qt/sflphone-qt.pro deleted file mode 100644 index 2eff3dffe81043e9a0110caa381ef4e02d175b14..0000000000000000000000000000000000000000 --- a/sflphone-qt/sflphone-qt.pro +++ /dev/null @@ -1,27 +0,0 @@ -###################################################################### -# Automatically generated by qmake (2.01a) mer. f�vr. 25 17:52:01 2009 -###################################################################### - -TEMPLATE = app -TARGET = -DEPENDPATH += . -INCLUDEPATH += . -CONFIG += qdbus uitools debug - -# Input -HEADERS += Account.h \ - AccountList.h \ - ConfigDialog.h \ - daemon_interface_p.h \ - daemon_interface_singleton.h \ - metatypes.h \ - sflphone_const.h -FORMS += ConfigDialog.ui -SOURCES += Account.cpp \ - AccountList.cpp \ - ConfigDialog.cpp \ - daemon_interface.cpp \ - daemon_interface_singleton.cpp \ - main.cpp \ - sflphone_const.cpp -TRANSLATIONS += config_en.ts diff --git a/sflphone-qt/sflphone_const.cpp b/sflphone-qt/sflphone_const.cpp deleted file mode 100644 index 145a90c93590cc070c34ca9952e313294c556861..0000000000000000000000000000000000000000 --- a/sflphone-qt/sflphone_const.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "sflphone_const.h" - -int getProtocoleIndex(QString protocoleName) -{ - if(protocoleName == (QString)"SIP") - return 0; - if(protocoleName == (QString)"IAX") - return 1; - return -1; -} - -QString getIndexProtocole(int protocoleIndex) -{ - if(protocoleIndex == 0) - return "SIP"; - if(protocoleIndex == 1) - return "IAX"; - return "UNKNOWN PROTOCOLE INDEX"; -} \ No newline at end of file diff --git a/sflphone-qt/sflphone_const.h b/sflphone-qt/sflphone_const.h deleted file mode 100644 index 57da6867ae67a66006d9521ae9d5f05a5a2501d1..0000000000000000000000000000000000000000 --- a/sflphone-qt/sflphone_const.h +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (C) 2008 Savoir-Faire Linux inc. - * Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com> - * - * 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 3 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., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -#ifndef __SFLPHONE_CONST_H -#define __SFLPHONE_CONST_H - -#include <libintl.h> -#include <QtGui> - -/* @file sflphone_const.h - * @brief Contains the global variables for the client code - */ - -/** Locale */ -#define _(STRING) gettext( STRING ) - -/** Warnings unused variables **/ -#define UNUSED_VAR(var) (void*)var - -#define UNUSED __attribute__((__unused__)) - -#define ACCOUNT_TYPE "Account.type" -#define ACCOUNT_ALIAS "Account.alias" -#define ACCOUNT_ENABLED "Account.enable" -#define ACCOUNT_MAILBOX "Account.mailbox" -#define ACCOUNT_HOSTNAME "hostname" -#define ACCOUNT_USERNAME "username" -#define ACCOUNT_PASSWORD "password" -#define ACCOUNT_STATUS "Status" -#define ACCOUNT_SIP_STUN_SERVER "STUN.server" -#define ACCOUNT_SIP_STUN_ENABLED "STUN.enable" - -#define ACCOUNT_ENABLED_TRUE "TRUE" -#define ACCOUNT_ENABLED_FALSE "FALSE" - -#define ACCOUNT_STATE_REGISTERED "REGISTERED" -#define ACCOUNT_STATE_UNREGISTERED "UNREGISTERED" -#define ACCOUNT_STATE_TRYING "TRYING" -#define ACCOUNT_STATE_ERROR "ERROR" -#define ACCOUNT_STATE_ERROR_AUTH "ERROR_AUTH" -#define ACCOUNT_STATE_ERROR_NETWORK "ERROR_NETWORK" -#define ACCOUNT_STATE_ERROR_HOST "ERROR_HOST" -#define ACCOUNT_STATE_ERROR_CONF_STUN "ERROR_CONF_STUN" -#define ACCOUNT_STATE_ERROR_EXIST_STUN "ERROR_EXIST_STUN" - -#define MAX_HISTORY_CAPACITY 60 - -#define CODEC_NAME 0 -#define CODEC_SAMPLE_RATE 1 -#define CODEC_BIT_RATE 2 -#define CODEC_BANDWIDTH 3 - -/** Error while opening capture device */ -#define ALSA_CAPTURE_DEVICE 0x0001 -/** Error while opening playback device */ -#define ALSA_PLAYBACK_DEVICE 0x0010 -/** Error pulseaudio */ -#define PULSEAUDIO_NOT_RUNNING 0x0100 - - - -/** Tone to play when no voice mails */ -#define TONE_WITHOUT_MESSAGE 0 -/** Tone to play when voice mails */ -#define TONE_WITH_MESSAGE 1 -/** Tells if the main window is reduced to the system tray or not */ -#define MINIMIZED TRUE -/** Behaviour of the main window on incoming calls */ -#define __POPUP_WINDOW ( dbus_popup_mode() ) -/** Show/Hide the dialpad */ -#define SHOW_DIALPAD ( dbus_get_dialpad() ) -/** Show/Hide the volume controls */ -#define SHOW_VOLUME ( dbus_get_volume_controls() ) -/** Show/Hide the dialpad */ -#define SHOW_SEARCHBAR ( dbus_get_searchbar() ) -/** Show/Hide the alsa configuration panel */ -#define SHOW_ALSA_CONF ( dbus_get_audio_manager() == ALSA ) - -/** Audio Managers */ -#define ALSA 0 -#define PULSEAUDIO 1 - -/** Notification levels */ -#define __NOTIF_LEVEL_MIN 0 -#define __NOTIF_LEVEL_MED 1 -#define __NOTIF_LEVEL_HIGH 2 - -/** Messages ID for the status bar - Incoming calls */ -#define __MSG_INCOMING_CALL 0 -/** Messages ID for the status bar - Calling */ -#define __MSG_CALLING 1 -/** Messages ID for the status bar - Voice mails notification */ -#define __MSG_VOICE_MAILS 2 -/** Messages ID for the status bar - Current account */ -#define __MSG_ACCOUNT_DEFAULT 3 - -/** Desktop notifications - Time before to close the notification*/ -#define __TIMEOUT_MODE "default" -/** Desktop notifications - Time before to close the notification*/ -#define __TIMEOUT_TIME 18000 // 30 secondes - -//TODO constantes pour protocoles -int getProtocoleIndex(QString protocoleName); - -QString getIndexProtocole(int protocoleIndex); - -#endif diff --git a/sflphone-qt/ui_ConfigDialog.h b/sflphone-qt/ui_ConfigDialog.h deleted file mode 100644 index b2b888bb78a6d96b37583077cd1fbe4662d48082..0000000000000000000000000000000000000000 --- a/sflphone-qt/ui_ConfigDialog.h +++ /dev/null @@ -1,966 +0,0 @@ -/******************************************************************************** -** Form generated from reading ui file 'ConfigDialog.ui' -** -** Created: Thu Feb 26 14:45:15 2009 -** by: Qt User Interface Compiler version 4.4.3 -** -** WARNING! All changes made in this file will be lost when recompiling ui file! -********************************************************************************/ - -#ifndef UI_CONFIGDIALOG_H -#define UI_CONFIGDIALOG_H - -#include <QtCore/QVariant> -#include <QtGui/QAction> -#include <QtGui/QApplication> -#include <QtGui/QButtonGroup> -#include <QtGui/QCheckBox> -#include <QtGui/QComboBox> -#include <QtGui/QDialog> -#include <QtGui/QDialogButtonBox> -#include <QtGui/QFormLayout> -#include <QtGui/QFrame> -#include <QtGui/QGridLayout> -#include <QtGui/QGroupBox> -#include <QtGui/QHBoxLayout> -#include <QtGui/QLabel> -#include <QtGui/QLineEdit> -#include <QtGui/QListWidget> -#include <QtGui/QSlider> -#include <QtGui/QSpinBox> -#include <QtGui/QStackedWidget> -#include <QtGui/QTableWidget> -#include <QtGui/QToolButton> -#include <QtGui/QVBoxLayout> -#include <QtGui/QWidget> - -QT_BEGIN_NAMESPACE - -class Ui_ConfigurationDialog -{ -public: - QVBoxLayout *verticalLayout; - QHBoxLayout *horizontalLayoutDialog; - QListWidget *listOptions; - QFrame *lineOptions; - QStackedWidget *stackedWidgetOptions; - QWidget *page_General; - QVBoxLayout *verticalLayout_18; - QLabel *label_ConfGeneral; - QFrame *line_ConfGeneral; - QGroupBox *groupBox1_Historique; - QVBoxLayout *verticalLayout_19; - QWidget *widget_CapaciteHist; - QHBoxLayout *horizontalLayout_10; - QLabel *label_Capacite; - QSlider *horizontalSlider_Capacity; - QSpinBox *spinBox_CapaciteHist; - QToolButton *toolButtonEffacerHist; - QGroupBox *groupBox2_Connexion; - QFormLayout *formLayout_12; - QLabel *label_PortSIP; - QWidget *widget; - QHBoxLayout *horizontalLayout; - QSpinBox *spinBox_PortSIP; - QLabel *label_WarningSIP; - QWidget *widget_RemplissageConfGeneral; - QWidget *page_Affichage; - QVBoxLayout *verticalLayout_9; - QLabel *label_ConfAffichage; - QFrame *line_ConfAffichage; - QFrame *frameAffichage; - QVBoxLayout *verticalLayout_8; - QLabel *label1_Notifications; - QWidget *widget1_Notifications; - QHBoxLayout *horizontalLayout_5; - QCheckBox *checkBox1_NotifAppels; - QCheckBox *checkBox2_NotifMessages; - QLabel *label2_FenetrePrincipale; - QWidget *widget_FenetrePrincipale; - QHBoxLayout *horizontalLayout_6; - QCheckBox *checkBox1_FenDemarrage; - QCheckBox *checkBox2_FenAppel; - QWidget *widget_5; - QWidget *page_Comptes; - QVBoxLayout *verticalLayout_2; - QLabel *label_ConfComptes; - QFrame *line_ConfComptes; - QWidget *widget1_ConfComptes; - QHBoxLayout *horizontalLayout_3; - QFrame *frame1_ListeComptes; - QVBoxLayout *verticalLayout_6; - QListWidget *listWidgetComptes; - QGroupBox *groupBoxGestionComptes; - QHBoxLayout *horizontalLayout_2; - QToolButton *buttonSupprimerCompte; - QToolButton *buttonNouveauCompte; - QFrame *frame2_EditComptes; - QFormLayout *formLayout_2; - QLabel *label1_Alias; - QLineEdit *edit1_Alias; - QLabel *label2_Protocole; - QLabel *label3_Serveur; - QLabel *label4_Usager; - QLabel *label5_Mdp; - QLabel *label6_BoiteVocale; - QLineEdit *edit3_Serveur; - QLineEdit *edit4_Usager; - QLineEdit *edit5_Mdp; - QLineEdit *edit6_BoiteVocale; - QComboBox *edit2_Protocole; - QLabel *edit7_Etat; - QLabel *label7_Etat; - QGroupBox *groupBox_ConfComptesCommuns; - QVBoxLayout *verticalLayout_10; - QLabel *label_ConfComptesCommus; - QFormLayout *formLayoutConfComptesCommus; - QCheckBox *checkBoxStun; - QLineEdit *lineEdit_Stun; - QWidget *page_Audio; - QVBoxLayout *verticalLayout_5; - QLabel *label_ConfAudio; - QFrame *line_ConfAudio; - QGroupBox *groupBox1_Audio; - QFormLayout *formLayout_3; - QLabel *label_Interface; - QComboBox *comboBox_Interface; - QCheckBox *checkBox_Sonneries; - QGroupBox *groupBox2_Codecs; - QGridLayout *gridLayout; - QVBoxLayout *verticalLayout_OrdreCodecs; - QToolButton *toolButton_MonterCodec; - QToolButton *toolButton_DescendreCodec; - QTableWidget *tableWidget_Codecs; - QStackedWidget *stackedWidget_ParametresSpecif; - QWidget *page1_Alsa; - QVBoxLayout *verticalLayout_20; - QGroupBox *groupBox_Alsa; - QFormLayout *formLayout_4; - QComboBox *comboBox2_Entree; - QLabel *label2_Entree; - QLabel *label3_Sortie; - QComboBox *comboBox3_Sortie; - QLabel *label1_GreffonAlsa; - QComboBox *comboBox1_GreffonAlsa; - QWidget *page2_PulseAudio; - QVBoxLayout *verticalLayout_7; - QGroupBox *groupBox_PulseAudio; - QFormLayout *formLayout_11; - QCheckBox *checkBox_ModifVolumeApps; - QFrame *lineDialog; - QDialogButtonBox *buttonBoxDialog; - - void setupUi(QDialog *ConfigurationDialog) - { - if (ConfigurationDialog->objectName().isEmpty()) - ConfigurationDialog->setObjectName(QString::fromUtf8("ConfigurationDialog")); - ConfigurationDialog->resize(504, 432); - ConfigurationDialog->setMinimumSize(QSize(0, 0)); - verticalLayout = new QVBoxLayout(ConfigurationDialog); - verticalLayout->setSpacing(4); - verticalLayout->setMargin(1); - verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); - horizontalLayoutDialog = new QHBoxLayout(); - horizontalLayoutDialog->setSpacing(4); - horizontalLayoutDialog->setObjectName(QString::fromUtf8("horizontalLayoutDialog")); - horizontalLayoutDialog->setSizeConstraint(QLayout::SetDefaultConstraint); - listOptions = new QListWidget(ConfigurationDialog); - QIcon icon; - icon.addPixmap(QPixmap(QString::fromUtf8(":/Images/sflphone.png")), QIcon::Normal, QIcon::Off); - QListWidgetItem *__listItem = new QListWidgetItem(listOptions); - __listItem->setIcon(icon); - QListWidgetItem *__listItem1 = new QListWidgetItem(listOptions); - __listItem1->setIcon(icon); - QIcon icon1; - icon1.addPixmap(QPixmap(QString::fromUtf8(":/Images/stock_person.svg")), QIcon::Normal, QIcon::Off); - QListWidgetItem *__listItem2 = new QListWidgetItem(listOptions); - __listItem2->setIcon(icon1); - QIcon icon2; - icon2.addPixmap(QPixmap(QString::fromUtf8(":/Images/icon_volume_off.svg")), QIcon::Normal, QIcon::Off); - QListWidgetItem *__listItem3 = new QListWidgetItem(listOptions); - __listItem3->setIcon(icon2); - listOptions->setObjectName(QString::fromUtf8("listOptions")); - QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); - sizePolicy.setHorizontalStretch(0); - sizePolicy.setVerticalStretch(0); - sizePolicy.setHeightForWidth(listOptions->sizePolicy().hasHeightForWidth()); - listOptions->setSizePolicy(sizePolicy); - listOptions->setMinimumSize(QSize(100, 300)); - listOptions->setMaximumSize(QSize(100, 16777215)); - listOptions->setSizeIncrement(QSize(0, 0)); - listOptions->setMouseTracking(false); - listOptions->setContextMenuPolicy(Qt::DefaultContextMenu); - listOptions->setAcceptDrops(false); - listOptions->setLayoutDirection(Qt::LeftToRight); - listOptions->setAutoFillBackground(true); - listOptions->setAutoScrollMargin(16); - listOptions->setEditTriggers(QAbstractItemView::AllEditTriggers); - listOptions->setDragEnabled(true); - listOptions->setIconSize(QSize(200, 200)); - listOptions->setTextElideMode(Qt::ElideMiddle); - listOptions->setVerticalScrollMode(QAbstractItemView::ScrollPerItem); - listOptions->setHorizontalScrollMode(QAbstractItemView::ScrollPerItem); - listOptions->setMovement(QListView::Static); - listOptions->setFlow(QListView::TopToBottom); - listOptions->setResizeMode(QListView::Adjust); - listOptions->setLayoutMode(QListView::SinglePass); - listOptions->setViewMode(QListView::IconMode); - listOptions->setModelColumn(0); - listOptions->setUniformItemSizes(false); - listOptions->setWordWrap(false); - listOptions->setSortingEnabled(false); - - horizontalLayoutDialog->addWidget(listOptions); - - lineOptions = new QFrame(ConfigurationDialog); - lineOptions->setObjectName(QString::fromUtf8("lineOptions")); - lineOptions->setFrameShape(QFrame::VLine); - lineOptions->setFrameShadow(QFrame::Sunken); - - horizontalLayoutDialog->addWidget(lineOptions); - - stackedWidgetOptions = new QStackedWidget(ConfigurationDialog); - stackedWidgetOptions->setObjectName(QString::fromUtf8("stackedWidgetOptions")); - page_General = new QWidget(); - page_General->setObjectName(QString::fromUtf8("page_General")); - verticalLayout_18 = new QVBoxLayout(page_General); - verticalLayout_18->setSpacing(4); - verticalLayout_18->setMargin(4); - verticalLayout_18->setObjectName(QString::fromUtf8("verticalLayout_18")); - verticalLayout_18->setContentsMargins(4, -1, -1, -1); - label_ConfGeneral = new QLabel(page_General); - label_ConfGeneral->setObjectName(QString::fromUtf8("label_ConfGeneral")); - - verticalLayout_18->addWidget(label_ConfGeneral); - - line_ConfGeneral = new QFrame(page_General); - line_ConfGeneral->setObjectName(QString::fromUtf8("line_ConfGeneral")); - line_ConfGeneral->setFrameShape(QFrame::HLine); - line_ConfGeneral->setFrameShadow(QFrame::Sunken); - - verticalLayout_18->addWidget(line_ConfGeneral); - - groupBox1_Historique = new QGroupBox(page_General); - groupBox1_Historique->setObjectName(QString::fromUtf8("groupBox1_Historique")); - QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed); - sizePolicy1.setHorizontalStretch(0); - sizePolicy1.setVerticalStretch(0); - sizePolicy1.setHeightForWidth(groupBox1_Historique->sizePolicy().hasHeightForWidth()); - groupBox1_Historique->setSizePolicy(sizePolicy1); - verticalLayout_19 = new QVBoxLayout(groupBox1_Historique); - verticalLayout_19->setSpacing(4); - verticalLayout_19->setMargin(4); - verticalLayout_19->setObjectName(QString::fromUtf8("verticalLayout_19")); - widget_CapaciteHist = new QWidget(groupBox1_Historique); - widget_CapaciteHist->setObjectName(QString::fromUtf8("widget_CapaciteHist")); - horizontalLayout_10 = new QHBoxLayout(widget_CapaciteHist); - horizontalLayout_10->setSpacing(4); - horizontalLayout_10->setMargin(4); - horizontalLayout_10->setObjectName(QString::fromUtf8("horizontalLayout_10")); - label_Capacite = new QLabel(widget_CapaciteHist); - label_Capacite->setObjectName(QString::fromUtf8("label_Capacite")); - - horizontalLayout_10->addWidget(label_Capacite); - - horizontalSlider_Capacity = new QSlider(widget_CapaciteHist); - horizontalSlider_Capacity->setObjectName(QString::fromUtf8("horizontalSlider_Capacity")); - horizontalSlider_Capacity->setMaximum(100); - horizontalSlider_Capacity->setOrientation(Qt::Horizontal); - - horizontalLayout_10->addWidget(horizontalSlider_Capacity); - - spinBox_CapaciteHist = new QSpinBox(widget_CapaciteHist); - spinBox_CapaciteHist->setObjectName(QString::fromUtf8("spinBox_CapaciteHist")); - - horizontalLayout_10->addWidget(spinBox_CapaciteHist); - - - verticalLayout_19->addWidget(widget_CapaciteHist); - - toolButtonEffacerHist = new QToolButton(groupBox1_Historique); - toolButtonEffacerHist->setObjectName(QString::fromUtf8("toolButtonEffacerHist")); - - verticalLayout_19->addWidget(toolButtonEffacerHist); - - - verticalLayout_18->addWidget(groupBox1_Historique); - - groupBox2_Connexion = new QGroupBox(page_General); - groupBox2_Connexion->setObjectName(QString::fromUtf8("groupBox2_Connexion")); - sizePolicy1.setHeightForWidth(groupBox2_Connexion->sizePolicy().hasHeightForWidth()); - groupBox2_Connexion->setSizePolicy(sizePolicy1); - formLayout_12 = new QFormLayout(groupBox2_Connexion); - formLayout_12->setSpacing(4); - formLayout_12->setMargin(4); - formLayout_12->setObjectName(QString::fromUtf8("formLayout_12")); - formLayout_12->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow); - label_PortSIP = new QLabel(groupBox2_Connexion); - label_PortSIP->setObjectName(QString::fromUtf8("label_PortSIP")); - - formLayout_12->setWidget(0, QFormLayout::LabelRole, label_PortSIP); - - widget = new QWidget(groupBox2_Connexion); - widget->setObjectName(QString::fromUtf8("widget")); - widget->setMinimumSize(QSize(50, 0)); - horizontalLayout = new QHBoxLayout(widget); - horizontalLayout->setSpacing(4); - horizontalLayout->setMargin(0); - horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); - spinBox_PortSIP = new QSpinBox(widget); - spinBox_PortSIP->setObjectName(QString::fromUtf8("spinBox_PortSIP")); - QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Preferred); - sizePolicy2.setHorizontalStretch(0); - sizePolicy2.setVerticalStretch(0); - sizePolicy2.setHeightForWidth(spinBox_PortSIP->sizePolicy().hasHeightForWidth()); - spinBox_PortSIP->setSizePolicy(sizePolicy2); - spinBox_PortSIP->setMinimum(1025); - spinBox_PortSIP->setMaximum(65536); - - horizontalLayout->addWidget(spinBox_PortSIP); - - label_WarningSIP = new QLabel(widget); - label_WarningSIP->setObjectName(QString::fromUtf8("label_WarningSIP")); - label_WarningSIP->setEnabled(false); - - horizontalLayout->addWidget(label_WarningSIP); - - - formLayout_12->setWidget(0, QFormLayout::FieldRole, widget); - - - verticalLayout_18->addWidget(groupBox2_Connexion); - - widget_RemplissageConfGeneral = new QWidget(page_General); - widget_RemplissageConfGeneral->setObjectName(QString::fromUtf8("widget_RemplissageConfGeneral")); - sizePolicy.setHeightForWidth(widget_RemplissageConfGeneral->sizePolicy().hasHeightForWidth()); - widget_RemplissageConfGeneral->setSizePolicy(sizePolicy); - - verticalLayout_18->addWidget(widget_RemplissageConfGeneral); - - stackedWidgetOptions->addWidget(page_General); - page_Affichage = new QWidget(); - page_Affichage->setObjectName(QString::fromUtf8("page_Affichage")); - verticalLayout_9 = new QVBoxLayout(page_Affichage); - verticalLayout_9->setSpacing(4); - verticalLayout_9->setMargin(4); - verticalLayout_9->setObjectName(QString::fromUtf8("verticalLayout_9")); - label_ConfAffichage = new QLabel(page_Affichage); - label_ConfAffichage->setObjectName(QString::fromUtf8("label_ConfAffichage")); - sizePolicy1.setHeightForWidth(label_ConfAffichage->sizePolicy().hasHeightForWidth()); - label_ConfAffichage->setSizePolicy(sizePolicy1); - - verticalLayout_9->addWidget(label_ConfAffichage); - - line_ConfAffichage = new QFrame(page_Affichage); - line_ConfAffichage->setObjectName(QString::fromUtf8("line_ConfAffichage")); - line_ConfAffichage->setFrameShape(QFrame::HLine); - line_ConfAffichage->setFrameShadow(QFrame::Sunken); - - verticalLayout_9->addWidget(line_ConfAffichage); - - frameAffichage = new QFrame(page_Affichage); - frameAffichage->setObjectName(QString::fromUtf8("frameAffichage")); - sizePolicy2.setHeightForWidth(frameAffichage->sizePolicy().hasHeightForWidth()); - frameAffichage->setSizePolicy(sizePolicy2); - frameAffichage->setFrameShape(QFrame::StyledPanel); - frameAffichage->setFrameShadow(QFrame::Raised); - verticalLayout_8 = new QVBoxLayout(frameAffichage); - verticalLayout_8->setSpacing(4); - verticalLayout_8->setMargin(4); - verticalLayout_8->setObjectName(QString::fromUtf8("verticalLayout_8")); - label1_Notifications = new QLabel(frameAffichage); - label1_Notifications->setObjectName(QString::fromUtf8("label1_Notifications")); - sizePolicy1.setHeightForWidth(label1_Notifications->sizePolicy().hasHeightForWidth()); - label1_Notifications->setSizePolicy(sizePolicy1); - - verticalLayout_8->addWidget(label1_Notifications); - - widget1_Notifications = new QWidget(frameAffichage); - widget1_Notifications->setObjectName(QString::fromUtf8("widget1_Notifications")); - sizePolicy1.setHeightForWidth(widget1_Notifications->sizePolicy().hasHeightForWidth()); - widget1_Notifications->setSizePolicy(sizePolicy1); - horizontalLayout_5 = new QHBoxLayout(widget1_Notifications); - horizontalLayout_5->setSpacing(4); - horizontalLayout_5->setMargin(4); - horizontalLayout_5->setObjectName(QString::fromUtf8("horizontalLayout_5")); - checkBox1_NotifAppels = new QCheckBox(widget1_Notifications); - checkBox1_NotifAppels->setObjectName(QString::fromUtf8("checkBox1_NotifAppels")); - - horizontalLayout_5->addWidget(checkBox1_NotifAppels); - - checkBox2_NotifMessages = new QCheckBox(widget1_Notifications); - checkBox2_NotifMessages->setObjectName(QString::fromUtf8("checkBox2_NotifMessages")); - - horizontalLayout_5->addWidget(checkBox2_NotifMessages); - - - verticalLayout_8->addWidget(widget1_Notifications); - - label2_FenetrePrincipale = new QLabel(frameAffichage); - label2_FenetrePrincipale->setObjectName(QString::fromUtf8("label2_FenetrePrincipale")); - sizePolicy1.setHeightForWidth(label2_FenetrePrincipale->sizePolicy().hasHeightForWidth()); - label2_FenetrePrincipale->setSizePolicy(sizePolicy1); - - verticalLayout_8->addWidget(label2_FenetrePrincipale); - - widget_FenetrePrincipale = new QWidget(frameAffichage); - widget_FenetrePrincipale->setObjectName(QString::fromUtf8("widget_FenetrePrincipale")); - sizePolicy1.setHeightForWidth(widget_FenetrePrincipale->sizePolicy().hasHeightForWidth()); - widget_FenetrePrincipale->setSizePolicy(sizePolicy1); - horizontalLayout_6 = new QHBoxLayout(widget_FenetrePrincipale); - horizontalLayout_6->setSpacing(4); - horizontalLayout_6->setMargin(4); - horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6")); - checkBox1_FenDemarrage = new QCheckBox(widget_FenetrePrincipale); - checkBox1_FenDemarrage->setObjectName(QString::fromUtf8("checkBox1_FenDemarrage")); - - horizontalLayout_6->addWidget(checkBox1_FenDemarrage); - - checkBox2_FenAppel = new QCheckBox(widget_FenetrePrincipale); - checkBox2_FenAppel->setObjectName(QString::fromUtf8("checkBox2_FenAppel")); - - horizontalLayout_6->addWidget(checkBox2_FenAppel); - - - verticalLayout_8->addWidget(widget_FenetrePrincipale); - - widget_5 = new QWidget(frameAffichage); - widget_5->setObjectName(QString::fromUtf8("widget_5")); - - verticalLayout_8->addWidget(widget_5); - - - verticalLayout_9->addWidget(frameAffichage); - - stackedWidgetOptions->addWidget(page_Affichage); - page_Comptes = new QWidget(); - page_Comptes->setObjectName(QString::fromUtf8("page_Comptes")); - verticalLayout_2 = new QVBoxLayout(page_Comptes); - verticalLayout_2->setSpacing(4); - verticalLayout_2->setMargin(4); - verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2")); - label_ConfComptes = new QLabel(page_Comptes); - label_ConfComptes->setObjectName(QString::fromUtf8("label_ConfComptes")); - sizePolicy2.setHeightForWidth(label_ConfComptes->sizePolicy().hasHeightForWidth()); - label_ConfComptes->setSizePolicy(sizePolicy2); - - verticalLayout_2->addWidget(label_ConfComptes); - - line_ConfComptes = new QFrame(page_Comptes); - line_ConfComptes->setObjectName(QString::fromUtf8("line_ConfComptes")); - line_ConfComptes->setFrameShape(QFrame::HLine); - line_ConfComptes->setFrameShadow(QFrame::Sunken); - - verticalLayout_2->addWidget(line_ConfComptes); - - widget1_ConfComptes = new QWidget(page_Comptes); - widget1_ConfComptes->setObjectName(QString::fromUtf8("widget1_ConfComptes")); - horizontalLayout_3 = new QHBoxLayout(widget1_ConfComptes); - horizontalLayout_3->setSpacing(4); - horizontalLayout_3->setMargin(4); - horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3")); - frame1_ListeComptes = new QFrame(widget1_ConfComptes); - frame1_ListeComptes->setObjectName(QString::fromUtf8("frame1_ListeComptes")); - frame1_ListeComptes->setMinimumSize(QSize(0, 0)); - frame1_ListeComptes->setMaximumSize(QSize(16777215, 16777215)); - frame1_ListeComptes->setFrameShape(QFrame::StyledPanel); - frame1_ListeComptes->setFrameShadow(QFrame::Raised); - verticalLayout_6 = new QVBoxLayout(frame1_ListeComptes); - verticalLayout_6->setSpacing(4); - verticalLayout_6->setMargin(4); - verticalLayout_6->setObjectName(QString::fromUtf8("verticalLayout_6")); - listWidgetComptes = new QListWidget(frame1_ListeComptes); - listWidgetComptes->setObjectName(QString::fromUtf8("listWidgetComptes")); - QSizePolicy sizePolicy3(QSizePolicy::Fixed, QSizePolicy::Expanding); - sizePolicy3.setHorizontalStretch(0); - sizePolicy3.setVerticalStretch(0); - sizePolicy3.setHeightForWidth(listWidgetComptes->sizePolicy().hasHeightForWidth()); - listWidgetComptes->setSizePolicy(sizePolicy3); - listWidgetComptes->setMinimumSize(QSize(150, 0)); - listWidgetComptes->setMaximumSize(QSize(150, 16777215)); - listWidgetComptes->setDragEnabled(true); - - verticalLayout_6->addWidget(listWidgetComptes); - - groupBoxGestionComptes = new QGroupBox(frame1_ListeComptes); - groupBoxGestionComptes->setObjectName(QString::fromUtf8("groupBoxGestionComptes")); - sizePolicy2.setHeightForWidth(groupBoxGestionComptes->sizePolicy().hasHeightForWidth()); - groupBoxGestionComptes->setSizePolicy(sizePolicy2); - groupBoxGestionComptes->setMaximumSize(QSize(16777215, 16777215)); - groupBoxGestionComptes->setLayoutDirection(Qt::RightToLeft); - groupBoxGestionComptes->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); - horizontalLayout_2 = new QHBoxLayout(groupBoxGestionComptes); - horizontalLayout_2->setSpacing(0); - horizontalLayout_2->setMargin(0); - horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2")); - buttonSupprimerCompte = new QToolButton(groupBoxGestionComptes); - buttonSupprimerCompte->setObjectName(QString::fromUtf8("buttonSupprimerCompte")); - sizePolicy1.setHeightForWidth(buttonSupprimerCompte->sizePolicy().hasHeightForWidth()); - buttonSupprimerCompte->setSizePolicy(sizePolicy1); - QIcon icon3; - icon3.addPixmap(QPixmap(QString::fromUtf8(":/Images/hang_up.svg")), QIcon::Normal, QIcon::Off); - buttonSupprimerCompte->setIcon(icon3); - - horizontalLayout_2->addWidget(buttonSupprimerCompte); - - buttonNouveauCompte = new QToolButton(groupBoxGestionComptes); - buttonNouveauCompte->setObjectName(QString::fromUtf8("buttonNouveauCompte")); - sizePolicy1.setHeightForWidth(buttonNouveauCompte->sizePolicy().hasHeightForWidth()); - buttonNouveauCompte->setSizePolicy(sizePolicy1); - buttonNouveauCompte->setSizeIncrement(QSize(0, 0)); - QIcon icon4; - icon4.addPixmap(QPixmap(QString::fromUtf8(":/Images/accept.svg")), QIcon::Normal, QIcon::Off); - buttonNouveauCompte->setIcon(icon4); - - horizontalLayout_2->addWidget(buttonNouveauCompte); - - - verticalLayout_6->addWidget(groupBoxGestionComptes); - - - horizontalLayout_3->addWidget(frame1_ListeComptes); - - frame2_EditComptes = new QFrame(widget1_ConfComptes); - frame2_EditComptes->setObjectName(QString::fromUtf8("frame2_EditComptes")); - QSizePolicy sizePolicy4(QSizePolicy::Expanding, QSizePolicy::Expanding); - sizePolicy4.setHorizontalStretch(0); - sizePolicy4.setVerticalStretch(0); - sizePolicy4.setHeightForWidth(frame2_EditComptes->sizePolicy().hasHeightForWidth()); - frame2_EditComptes->setSizePolicy(sizePolicy4); - frame2_EditComptes->setFrameShape(QFrame::StyledPanel); - frame2_EditComptes->setFrameShadow(QFrame::Raised); - formLayout_2 = new QFormLayout(frame2_EditComptes); - formLayout_2->setSpacing(4); - formLayout_2->setMargin(4); - formLayout_2->setObjectName(QString::fromUtf8("formLayout_2")); - formLayout_2->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow); - label1_Alias = new QLabel(frame2_EditComptes); - label1_Alias->setObjectName(QString::fromUtf8("label1_Alias")); - - formLayout_2->setWidget(0, QFormLayout::LabelRole, label1_Alias); - - edit1_Alias = new QLineEdit(frame2_EditComptes); - edit1_Alias->setObjectName(QString::fromUtf8("edit1_Alias")); - edit1_Alias->setMinimumSize(QSize(0, 0)); - - formLayout_2->setWidget(0, QFormLayout::FieldRole, edit1_Alias); - - label2_Protocole = new QLabel(frame2_EditComptes); - label2_Protocole->setObjectName(QString::fromUtf8("label2_Protocole")); - - formLayout_2->setWidget(1, QFormLayout::LabelRole, label2_Protocole); - - label3_Serveur = new QLabel(frame2_EditComptes); - label3_Serveur->setObjectName(QString::fromUtf8("label3_Serveur")); - - formLayout_2->setWidget(2, QFormLayout::LabelRole, label3_Serveur); - - label4_Usager = new QLabel(frame2_EditComptes); - label4_Usager->setObjectName(QString::fromUtf8("label4_Usager")); - - formLayout_2->setWidget(3, QFormLayout::LabelRole, label4_Usager); - - label5_Mdp = new QLabel(frame2_EditComptes); - label5_Mdp->setObjectName(QString::fromUtf8("label5_Mdp")); - - formLayout_2->setWidget(4, QFormLayout::LabelRole, label5_Mdp); - - label6_BoiteVocale = new QLabel(frame2_EditComptes); - label6_BoiteVocale->setObjectName(QString::fromUtf8("label6_BoiteVocale")); - - formLayout_2->setWidget(5, QFormLayout::LabelRole, label6_BoiteVocale); - - edit3_Serveur = new QLineEdit(frame2_EditComptes); - edit3_Serveur->setObjectName(QString::fromUtf8("edit3_Serveur")); - edit3_Serveur->setMinimumSize(QSize(0, 0)); - - formLayout_2->setWidget(2, QFormLayout::FieldRole, edit3_Serveur); - - edit4_Usager = new QLineEdit(frame2_EditComptes); - edit4_Usager->setObjectName(QString::fromUtf8("edit4_Usager")); - - formLayout_2->setWidget(3, QFormLayout::FieldRole, edit4_Usager); - - edit5_Mdp = new QLineEdit(frame2_EditComptes); - edit5_Mdp->setObjectName(QString::fromUtf8("edit5_Mdp")); - edit5_Mdp->setEchoMode(QLineEdit::Password); - - formLayout_2->setWidget(4, QFormLayout::FieldRole, edit5_Mdp); - - edit6_BoiteVocale = new QLineEdit(frame2_EditComptes); - edit6_BoiteVocale->setObjectName(QString::fromUtf8("edit6_BoiteVocale")); - - formLayout_2->setWidget(5, QFormLayout::FieldRole, edit6_BoiteVocale); - - edit2_Protocole = new QComboBox(frame2_EditComptes); - edit2_Protocole->setObjectName(QString::fromUtf8("edit2_Protocole")); - - formLayout_2->setWidget(1, QFormLayout::FieldRole, edit2_Protocole); - - edit7_Etat = new QLabel(frame2_EditComptes); - edit7_Etat->setObjectName(QString::fromUtf8("edit7_Etat")); - - formLayout_2->setWidget(6, QFormLayout::FieldRole, edit7_Etat); - - label7_Etat = new QLabel(frame2_EditComptes); - label7_Etat->setObjectName(QString::fromUtf8("label7_Etat")); - - formLayout_2->setWidget(6, QFormLayout::LabelRole, label7_Etat); - - - horizontalLayout_3->addWidget(frame2_EditComptes); - - - verticalLayout_2->addWidget(widget1_ConfComptes); - - groupBox_ConfComptesCommuns = new QGroupBox(page_Comptes); - groupBox_ConfComptesCommuns->setObjectName(QString::fromUtf8("groupBox_ConfComptesCommuns")); - verticalLayout_10 = new QVBoxLayout(groupBox_ConfComptesCommuns); - verticalLayout_10->setSpacing(4); - verticalLayout_10->setMargin(4); - verticalLayout_10->setObjectName(QString::fromUtf8("verticalLayout_10")); - label_ConfComptesCommus = new QLabel(groupBox_ConfComptesCommuns); - label_ConfComptesCommus->setObjectName(QString::fromUtf8("label_ConfComptesCommus")); - - verticalLayout_10->addWidget(label_ConfComptesCommus); - - formLayoutConfComptesCommus = new QFormLayout(); - formLayoutConfComptesCommus->setSpacing(4); - formLayoutConfComptesCommus->setObjectName(QString::fromUtf8("formLayoutConfComptesCommus")); - formLayoutConfComptesCommus->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow); - checkBoxStun = new QCheckBox(groupBox_ConfComptesCommuns); - checkBoxStun->setObjectName(QString::fromUtf8("checkBoxStun")); - - formLayoutConfComptesCommus->setWidget(0, QFormLayout::LabelRole, checkBoxStun); - - lineEdit_Stun = new QLineEdit(groupBox_ConfComptesCommuns); - lineEdit_Stun->setObjectName(QString::fromUtf8("lineEdit_Stun")); - lineEdit_Stun->setEnabled(false); - - formLayoutConfComptesCommus->setWidget(0, QFormLayout::FieldRole, lineEdit_Stun); - - - verticalLayout_10->addLayout(formLayoutConfComptesCommus); - - - verticalLayout_2->addWidget(groupBox_ConfComptesCommuns); - - stackedWidgetOptions->addWidget(page_Comptes); - page_Audio = new QWidget(); - page_Audio->setObjectName(QString::fromUtf8("page_Audio")); - verticalLayout_5 = new QVBoxLayout(page_Audio); - verticalLayout_5->setSpacing(4); - verticalLayout_5->setMargin(4); - verticalLayout_5->setObjectName(QString::fromUtf8("verticalLayout_5")); - label_ConfAudio = new QLabel(page_Audio); - label_ConfAudio->setObjectName(QString::fromUtf8("label_ConfAudio")); - sizePolicy1.setHeightForWidth(label_ConfAudio->sizePolicy().hasHeightForWidth()); - label_ConfAudio->setSizePolicy(sizePolicy1); - - verticalLayout_5->addWidget(label_ConfAudio); - - line_ConfAudio = new QFrame(page_Audio); - line_ConfAudio->setObjectName(QString::fromUtf8("line_ConfAudio")); - line_ConfAudio->setFrameShape(QFrame::HLine); - line_ConfAudio->setFrameShadow(QFrame::Sunken); - - verticalLayout_5->addWidget(line_ConfAudio); - - groupBox1_Audio = new QGroupBox(page_Audio); - groupBox1_Audio->setObjectName(QString::fromUtf8("groupBox1_Audio")); - formLayout_3 = new QFormLayout(groupBox1_Audio); - formLayout_3->setSpacing(4); - formLayout_3->setMargin(4); - formLayout_3->setObjectName(QString::fromUtf8("formLayout_3")); - label_Interface = new QLabel(groupBox1_Audio); - label_Interface->setObjectName(QString::fromUtf8("label_Interface")); - - formLayout_3->setWidget(0, QFormLayout::LabelRole, label_Interface); - - comboBox_Interface = new QComboBox(groupBox1_Audio); - comboBox_Interface->setObjectName(QString::fromUtf8("comboBox_Interface")); - comboBox_Interface->setMinimumSize(QSize(100, 0)); - - formLayout_3->setWidget(0, QFormLayout::FieldRole, comboBox_Interface); - - checkBox_Sonneries = new QCheckBox(groupBox1_Audio); - checkBox_Sonneries->setObjectName(QString::fromUtf8("checkBox_Sonneries")); - - formLayout_3->setWidget(1, QFormLayout::LabelRole, checkBox_Sonneries); - - - verticalLayout_5->addWidget(groupBox1_Audio); - - groupBox2_Codecs = new QGroupBox(page_Audio); - groupBox2_Codecs->setObjectName(QString::fromUtf8("groupBox2_Codecs")); - sizePolicy2.setHeightForWidth(groupBox2_Codecs->sizePolicy().hasHeightForWidth()); - groupBox2_Codecs->setSizePolicy(sizePolicy2); - gridLayout = new QGridLayout(groupBox2_Codecs); - gridLayout->setSpacing(4); - gridLayout->setMargin(4); - gridLayout->setObjectName(QString::fromUtf8("gridLayout")); - verticalLayout_OrdreCodecs = new QVBoxLayout(); - verticalLayout_OrdreCodecs->setSpacing(4); - verticalLayout_OrdreCodecs->setObjectName(QString::fromUtf8("verticalLayout_OrdreCodecs")); - verticalLayout_OrdreCodecs->setContentsMargins(0, -1, 0, -1); - toolButton_MonterCodec = new QToolButton(groupBox2_Codecs); - toolButton_MonterCodec->setObjectName(QString::fromUtf8("toolButton_MonterCodec")); - - verticalLayout_OrdreCodecs->addWidget(toolButton_MonterCodec); - - toolButton_DescendreCodec = new QToolButton(groupBox2_Codecs); - toolButton_DescendreCodec->setObjectName(QString::fromUtf8("toolButton_DescendreCodec")); - - verticalLayout_OrdreCodecs->addWidget(toolButton_DescendreCodec); - - - gridLayout->addLayout(verticalLayout_OrdreCodecs, 0, 2, 1, 1); - - tableWidget_Codecs = new QTableWidget(groupBox2_Codecs); - if (tableWidget_Codecs->columnCount() < 5) - tableWidget_Codecs->setColumnCount(5); - QTableWidgetItem *__colItem = new QTableWidgetItem(); - tableWidget_Codecs->setHorizontalHeaderItem(0, __colItem); - QTableWidgetItem *__colItem1 = new QTableWidgetItem(); - tableWidget_Codecs->setHorizontalHeaderItem(1, __colItem1); - QTableWidgetItem *__colItem2 = new QTableWidgetItem(); - tableWidget_Codecs->setHorizontalHeaderItem(2, __colItem2); - QTableWidgetItem *__colItem3 = new QTableWidgetItem(); - tableWidget_Codecs->setHorizontalHeaderItem(3, __colItem3); - QTableWidgetItem *__colItem4 = new QTableWidgetItem(); - tableWidget_Codecs->setHorizontalHeaderItem(4, __colItem4); - tableWidget_Codecs->setObjectName(QString::fromUtf8("tableWidget_Codecs")); - QSizePolicy sizePolicy5(QSizePolicy::Expanding, QSizePolicy::Preferred); - sizePolicy5.setHorizontalStretch(0); - sizePolicy5.setVerticalStretch(0); - sizePolicy5.setHeightForWidth(tableWidget_Codecs->sizePolicy().hasHeightForWidth()); - tableWidget_Codecs->setSizePolicy(sizePolicy5); - tableWidget_Codecs->setMinimumSize(QSize(0, 100)); - tableWidget_Codecs->setFrameShape(QFrame::StyledPanel); - tableWidget_Codecs->setFrameShadow(QFrame::Sunken); - tableWidget_Codecs->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); - tableWidget_Codecs->setTextElideMode(Qt::ElideRight); - tableWidget_Codecs->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); - tableWidget_Codecs->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); - - gridLayout->addWidget(tableWidget_Codecs, 0, 0, 1, 1); - - - verticalLayout_5->addWidget(groupBox2_Codecs); - - stackedWidget_ParametresSpecif = new QStackedWidget(page_Audio); - stackedWidget_ParametresSpecif->setObjectName(QString::fromUtf8("stackedWidget_ParametresSpecif")); - sizePolicy1.setHeightForWidth(stackedWidget_ParametresSpecif->sizePolicy().hasHeightForWidth()); - stackedWidget_ParametresSpecif->setSizePolicy(sizePolicy1); - page1_Alsa = new QWidget(); - page1_Alsa->setObjectName(QString::fromUtf8("page1_Alsa")); - verticalLayout_20 = new QVBoxLayout(page1_Alsa); - verticalLayout_20->setSpacing(4); - verticalLayout_20->setMargin(0); - verticalLayout_20->setObjectName(QString::fromUtf8("verticalLayout_20")); - groupBox_Alsa = new QGroupBox(page1_Alsa); - groupBox_Alsa->setObjectName(QString::fromUtf8("groupBox_Alsa")); - formLayout_4 = new QFormLayout(groupBox_Alsa); - formLayout_4->setSpacing(4); - formLayout_4->setMargin(4); - formLayout_4->setObjectName(QString::fromUtf8("formLayout_4")); - comboBox2_Entree = new QComboBox(groupBox_Alsa); - comboBox2_Entree->setObjectName(QString::fromUtf8("comboBox2_Entree")); - comboBox2_Entree->setMinimumSize(QSize(100, 0)); - - formLayout_4->setWidget(2, QFormLayout::FieldRole, comboBox2_Entree); - - label2_Entree = new QLabel(groupBox_Alsa); - label2_Entree->setObjectName(QString::fromUtf8("label2_Entree")); - - formLayout_4->setWidget(2, QFormLayout::LabelRole, label2_Entree); - - label3_Sortie = new QLabel(groupBox_Alsa); - label3_Sortie->setObjectName(QString::fromUtf8("label3_Sortie")); - - formLayout_4->setWidget(3, QFormLayout::LabelRole, label3_Sortie); - - comboBox3_Sortie = new QComboBox(groupBox_Alsa); - comboBox3_Sortie->setObjectName(QString::fromUtf8("comboBox3_Sortie")); - comboBox3_Sortie->setMinimumSize(QSize(100, 0)); - - formLayout_4->setWidget(3, QFormLayout::FieldRole, comboBox3_Sortie); - - label1_GreffonAlsa = new QLabel(groupBox_Alsa); - label1_GreffonAlsa->setObjectName(QString::fromUtf8("label1_GreffonAlsa")); - - formLayout_4->setWidget(0, QFormLayout::LabelRole, label1_GreffonAlsa); - - comboBox1_GreffonAlsa = new QComboBox(groupBox_Alsa); - comboBox1_GreffonAlsa->setObjectName(QString::fromUtf8("comboBox1_GreffonAlsa")); - comboBox1_GreffonAlsa->setMinimumSize(QSize(100, 0)); - - formLayout_4->setWidget(0, QFormLayout::FieldRole, comboBox1_GreffonAlsa); - - - verticalLayout_20->addWidget(groupBox_Alsa); - - stackedWidget_ParametresSpecif->addWidget(page1_Alsa); - page2_PulseAudio = new QWidget(); - page2_PulseAudio->setObjectName(QString::fromUtf8("page2_PulseAudio")); - verticalLayout_7 = new QVBoxLayout(page2_PulseAudio); - verticalLayout_7->setSpacing(4); - verticalLayout_7->setMargin(4); - verticalLayout_7->setObjectName(QString::fromUtf8("verticalLayout_7")); - groupBox_PulseAudio = new QGroupBox(page2_PulseAudio); - groupBox_PulseAudio->setObjectName(QString::fromUtf8("groupBox_PulseAudio")); - sizePolicy4.setHeightForWidth(groupBox_PulseAudio->sizePolicy().hasHeightForWidth()); - groupBox_PulseAudio->setSizePolicy(sizePolicy4); - formLayout_11 = new QFormLayout(groupBox_PulseAudio); - formLayout_11->setSpacing(4); - formLayout_11->setMargin(4); - formLayout_11->setObjectName(QString::fromUtf8("formLayout_11")); - formLayout_11->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow); - checkBox_ModifVolumeApps = new QCheckBox(groupBox_PulseAudio); - checkBox_ModifVolumeApps->setObjectName(QString::fromUtf8("checkBox_ModifVolumeApps")); - - formLayout_11->setWidget(0, QFormLayout::LabelRole, checkBox_ModifVolumeApps); - - - verticalLayout_7->addWidget(groupBox_PulseAudio); - - stackedWidget_ParametresSpecif->addWidget(page2_PulseAudio); - - verticalLayout_5->addWidget(stackedWidget_ParametresSpecif); - - stackedWidgetOptions->addWidget(page_Audio); - - horizontalLayoutDialog->addWidget(stackedWidgetOptions); - - - verticalLayout->addLayout(horizontalLayoutDialog); - - lineDialog = new QFrame(ConfigurationDialog); - lineDialog->setObjectName(QString::fromUtf8("lineDialog")); - lineDialog->setFrameShape(QFrame::HLine); - lineDialog->setFrameShadow(QFrame::Sunken); - - verticalLayout->addWidget(lineDialog); - - buttonBoxDialog = new QDialogButtonBox(ConfigurationDialog); - buttonBoxDialog->setObjectName(QString::fromUtf8("buttonBoxDialog")); - buttonBoxDialog->setLayoutDirection(Qt::LeftToRight); - buttonBoxDialog->setOrientation(Qt::Horizontal); - buttonBoxDialog->setStandardButtons(QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults); - buttonBoxDialog->setCenterButtons(false); - - verticalLayout->addWidget(buttonBoxDialog); - - -#ifndef QT_NO_SHORTCUT - label_Capacite->setBuddy(horizontalSlider_Capacity); - label1_Alias->setBuddy(edit1_Alias); - label2_Protocole->setBuddy(edit2_Protocole); - label3_Serveur->setBuddy(edit3_Serveur); - label4_Usager->setBuddy(edit4_Usager); - label5_Mdp->setBuddy(edit5_Mdp); - label6_BoiteVocale->setBuddy(edit6_BoiteVocale); - label_Interface->setBuddy(comboBox_Interface); - label2_Entree->setBuddy(comboBox2_Entree); - label3_Sortie->setBuddy(comboBox3_Sortie); - label1_GreffonAlsa->setBuddy(comboBox1_GreffonAlsa); -#endif // QT_NO_SHORTCUT - - - retranslateUi(ConfigurationDialog); - QObject::connect(buttonBoxDialog, SIGNAL(rejected()), ConfigurationDialog, SLOT(reject())); - QObject::connect(listOptions, SIGNAL(currentRowChanged(int)), stackedWidgetOptions, SLOT(setCurrentIndex(int))); - QObject::connect(checkBoxStun, SIGNAL(toggled(bool)), lineEdit_Stun, SLOT(setEnabled(bool))); - QObject::connect(comboBox_Interface, SIGNAL(currentIndexChanged(int)), stackedWidget_ParametresSpecif, SLOT(setCurrentIndex(int))); - QObject::connect(horizontalSlider_Capacity, SIGNAL(valueChanged(int)), spinBox_CapaciteHist, SLOT(setValue(int))); - QObject::connect(spinBox_CapaciteHist, SIGNAL(valueChanged(int)), horizontalSlider_Capacity, SLOT(setValue(int))); - - stackedWidgetOptions->setCurrentIndex(2); - stackedWidget_ParametresSpecif->setCurrentIndex(1); - - - QMetaObject::connectSlotsByName(ConfigurationDialog); - } // setupUi - - void retranslateUi(QDialog *ConfigurationDialog) - { - ConfigurationDialog->setWindowTitle(QApplication::translate("ConfigurationDialog", "Dialog", 0, QApplication::UnicodeUTF8)); - - const bool __sortingEnabled = listOptions->isSortingEnabled(); - listOptions->setSortingEnabled(false); - listOptions->item(0)->setText(QApplication::translate("ConfigurationDialog", "G\303\251n\303\251ral", 0, QApplication::UnicodeUTF8)); - listOptions->item(1)->setText(QApplication::translate("ConfigurationDialog", "Affichage", 0, QApplication::UnicodeUTF8)); - listOptions->item(2)->setText(QApplication::translate("ConfigurationDialog", "Comptes", 0, QApplication::UnicodeUTF8)); - listOptions->item(3)->setText(QApplication::translate("ConfigurationDialog", "Audio", 0, QApplication::UnicodeUTF8)); - - listOptions->setSortingEnabled(__sortingEnabled); - label_ConfGeneral->setText(QApplication::translate("ConfigurationDialog", "Configuration des param\303\250tres g\303\251n\303\251raux", 0, QApplication::UnicodeUTF8)); - groupBox1_Historique->setTitle(QApplication::translate("ConfigurationDialog", "Historique des appels", 0, QApplication::UnicodeUTF8)); - label_Capacite->setText(QApplication::translate("ConfigurationDialog", "&Capacit\303\251", 0, QApplication::UnicodeUTF8)); - toolButtonEffacerHist->setText(QApplication::translate("ConfigurationDialog", "&Effacer l'Historique", 0, QApplication::UnicodeUTF8)); - groupBox2_Connexion->setTitle(QApplication::translate("ConfigurationDialog", "Connexion", 0, QApplication::UnicodeUTF8)); - label_PortSIP->setText(QApplication::translate("ConfigurationDialog", "Port SIP", 0, QApplication::UnicodeUTF8)); - label_WarningSIP->setText(QApplication::translate("ConfigurationDialog", "Attention ", 0, QApplication::UnicodeUTF8)); - label_ConfAffichage->setText(QApplication::translate("ConfigurationDialog", "Configuration de l'affichage", 0, QApplication::UnicodeUTF8)); - label1_Notifications->setText(QApplication::translate("ConfigurationDialog", "Activer les notifications du bureau", 0, QApplication::UnicodeUTF8)); - checkBox1_NotifAppels->setText(QApplication::translate("ConfigurationDialog", "&Appels entrants", 0, QApplication::UnicodeUTF8)); - checkBox2_NotifMessages->setText(QApplication::translate("ConfigurationDialog", "&Messages vocaux", 0, QApplication::UnicodeUTF8)); - label2_FenetrePrincipale->setText(QApplication::translate("ConfigurationDialog", "Faire appara\303\256tre la fen\303\252tre principale", 0, QApplication::UnicodeUTF8)); - checkBox1_FenDemarrage->setText(QApplication::translate("ConfigurationDialog", "Au &d\303\251marrage", 0, QApplication::UnicodeUTF8)); - checkBox2_FenAppel->setText(QApplication::translate("ConfigurationDialog", "Lors d'un appel &entrant", 0, QApplication::UnicodeUTF8)); - label_ConfComptes->setText(QApplication::translate("ConfigurationDialog", "Configuration des comptes utilisateur", 0, QApplication::UnicodeUTF8)); - groupBoxGestionComptes->setTitle(QString()); - buttonSupprimerCompte->setText(QString()); - buttonSupprimerCompte->setShortcut(QApplication::translate("ConfigurationDialog", "+", 0, QApplication::UnicodeUTF8)); - buttonNouveauCompte->setText(QApplication::translate("ConfigurationDialog", "...", 0, QApplication::UnicodeUTF8)); - label1_Alias->setText(QApplication::translate("ConfigurationDialog", "&Alias", 0, QApplication::UnicodeUTF8)); - label2_Protocole->setText(QApplication::translate("ConfigurationDialog", "&Protocole", 0, QApplication::UnicodeUTF8)); - label3_Serveur->setText(QApplication::translate("ConfigurationDialog", "&Serveur", 0, QApplication::UnicodeUTF8)); - label4_Usager->setText(QApplication::translate("ConfigurationDialog", "&Usager", 0, QApplication::UnicodeUTF8)); - label5_Mdp->setText(QApplication::translate("ConfigurationDialog", "&Mot de Passe", 0, QApplication::UnicodeUTF8)); - label6_BoiteVocale->setText(QApplication::translate("ConfigurationDialog", "&Bo\303\256te Vocale", 0, QApplication::UnicodeUTF8)); - edit2_Protocole->clear(); - edit2_Protocole->insertItems(0, QStringList() - << QApplication::translate("ConfigurationDialog", "SIP", 0, QApplication::UnicodeUTF8) - << QApplication::translate("ConfigurationDialog", "IAX", 0, QApplication::UnicodeUTF8) - ); - edit7_Etat->setText(QString()); - label7_Etat->setText(QApplication::translate("ConfigurationDialog", "\303\211tat ", 0, QApplication::UnicodeUTF8)); - groupBox_ConfComptesCommuns->setTitle(QString()); - label_ConfComptesCommus->setText(QApplication::translate("ConfigurationDialog", "Les param\303\250tres STUN seront appliqu\303\251s \303\240 tous les comptes", 0, QApplication::UnicodeUTF8)); - checkBoxStun->setText(QApplication::translate("ConfigurationDialog", "Activer Stun", 0, QApplication::UnicodeUTF8)); - label_ConfAudio->setText(QApplication::translate("ConfigurationDialog", "Configuration des param\303\250tres audio", 0, QApplication::UnicodeUTF8)); - groupBox1_Audio->setTitle(QString()); - label_Interface->setText(QApplication::translate("ConfigurationDialog", "&Interface audio", 0, QApplication::UnicodeUTF8)); - comboBox_Interface->clear(); - comboBox_Interface->insertItems(0, QStringList() - << QApplication::translate("ConfigurationDialog", "ALSA", 0, QApplication::UnicodeUTF8) - << QApplication::translate("ConfigurationDialog", "PulseAudio", 0, QApplication::UnicodeUTF8) - ); - checkBox_Sonneries->setText(QApplication::translate("ConfigurationDialog", "&Activer les sonneries", 0, QApplication::UnicodeUTF8)); - groupBox2_Codecs->setTitle(QApplication::translate("ConfigurationDialog", "&Codecs", 0, QApplication::UnicodeUTF8)); - toolButton_MonterCodec->setText(QApplication::translate("ConfigurationDialog", "...", 0, QApplication::UnicodeUTF8)); - toolButton_DescendreCodec->setText(QApplication::translate("ConfigurationDialog", "...", 0, QApplication::UnicodeUTF8)); - tableWidget_Codecs->horizontalHeaderItem(0)->setText(QApplication::translate("ConfigurationDialog", "Actif", 0, QApplication::UnicodeUTF8)); - tableWidget_Codecs->horizontalHeaderItem(1)->setText(QApplication::translate("ConfigurationDialog", "Nom", 0, QApplication::UnicodeUTF8)); - tableWidget_Codecs->horizontalHeaderItem(2)->setText(QApplication::translate("ConfigurationDialog", "Fr\303\251quence", 0, QApplication::UnicodeUTF8)); - tableWidget_Codecs->horizontalHeaderItem(3)->setText(QApplication::translate("ConfigurationDialog", "Bitrate", 0, QApplication::UnicodeUTF8)); - tableWidget_Codecs->horizontalHeaderItem(4)->setText(QApplication::translate("ConfigurationDialog", "Bande Passante", 0, QApplication::UnicodeUTF8)); - groupBox_Alsa->setTitle(QApplication::translate("ConfigurationDialog", "Param\303\250tres ALSA", 0, QApplication::UnicodeUTF8)); - label2_Entree->setText(QApplication::translate("ConfigurationDialog", "&Entr\303\251e", 0, QApplication::UnicodeUTF8)); - label3_Sortie->setText(QApplication::translate("ConfigurationDialog", "&Sortie", 0, QApplication::UnicodeUTF8)); - label1_GreffonAlsa->setText(QApplication::translate("ConfigurationDialog", "&Greffon ALSA", 0, QApplication::UnicodeUTF8)); - groupBox_PulseAudio->setTitle(QApplication::translate("ConfigurationDialog", "Param\303\250tres PulseAudio", 0, QApplication::UnicodeUTF8)); - checkBox_ModifVolumeApps->setText(QApplication::translate("ConfigurationDialog", "Autoriser \303\240 &modifier le volume des autres applications", 0, QApplication::UnicodeUTF8)); - Q_UNUSED(ConfigurationDialog); - } // retranslateUi - -}; - -namespace Ui { - class ConfigurationDialog: public Ui_ConfigurationDialog {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // UI_CONFIGDIALOG_H diff --git a/sflphone_kde/AccountWizard.cpp b/sflphone_kde/AccountWizard.cpp index b332946e26b19debe395260726ec93ed42e8a09c..239d7baf1604afb3c5e85659258fd1c30e23dd27 100644 --- a/sflphone_kde/AccountWizard.cpp +++ b/sflphone_kde/AccountWizard.cpp @@ -3,12 +3,12 @@ * Author : Jérémy Quentin * * jeremy.quentin@savoirfairelinux.com * * * - * This program is free software; you can redistribute it and/or modify * + * This program is free software; you can redistr2i18nibute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * - * This program is distributed in the hope that it will be useful, * + * This program is distr2i18nibuted 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. * @@ -24,6 +24,7 @@ #include "sflphone_const.h" #include "configurationmanager_interface_singleton.h" +#include <klocale.h> #include <netdb.h> @@ -159,7 +160,7 @@ AccountWizard::AccountWizard(QWidget * parent) setStartId(Page_Intro); //setPixmap(QWizard::BannerPixmap, QPixmap(":/images/icons/dial.svg")); - setWindowTitle(tr("Account Wizard")); + setWindowTitle(tr2i18n("Account Wizard")); setPixmap(QWizard::LogoPixmap, QPixmap(":/images/icons/sflphone.png")); } @@ -194,7 +195,7 @@ void AccountWizard::accept() rest_account acc = get_rest_account(SFL_ACCOUNT_HOST, charEmailAddress); if(acc.success) { - ret += tr("Creation of account succeed with parameters :\n"); + ret += tr2i18n("Creation of account succeed with parameters :\n"); alias = QString(acc.user) + "@" + SFL_ACCOUNT_HOST; server = QString(SFL_ACCOUNT_HOST); user = QString(acc.user); @@ -205,13 +206,13 @@ void AccountWizard::accept() } else { - ret += tr("Creation of account has failed for the reason :\n"); + ret += tr2i18n("Creation of account has failed for the reason :\n"); ret += acc.reason; } } else { - ret += tr("Register of account succeed with parameters :\n"); + ret += tr2i18n("Register of account succeed with parameters :\n"); bool SIPAccount = field(FIELD_SIP_ACCOUNT).toBool(); if(SIPAccount) { @@ -247,12 +248,12 @@ void AccountWizard::accept() if(enableStun != configurationManager.isStunEnabled()) configurationManager.enableStun(); if(enableStun) configurationManager.setStunServer(stunServer); } - ret += tr("Alias : ") + alias + "\n"; - ret += tr("Server : ") + server + "\n"; - ret += tr("User : ") + user + "\n"; - ret += tr("Password : ") + password + "\n"; - ret += tr("Protocol : ") + protocol + "\n"; - ret += tr("Mailbox : ") + mailbox + "\n"; + ret += tr2i18n("Alias : ") + alias + "\n"; + ret += tr2i18n("Server : ") + server + "\n"; + ret += tr2i18n("User : ") + user + "\n"; + ret += tr2i18n("Password : ") + password + "\n"; + ret += tr2i18n("Protocol : ") + protocol + "\n"; + ret += tr2i18n("Mailbox : ") + mailbox + "\n"; } qDebug() << ret; QDialog::accept(); @@ -263,16 +264,16 @@ void AccountWizard::accept() /*************************************************************************** * Class WizardIntroPage * - * Widget of the introduction page of the wizard * + * Widget of the intr2i18noduction page of the wizard * ***************************************************************************/ WizardIntroPage::WizardIntroPage(QWidget *parent) : QWizardPage(parent) { - setTitle(tr("Account Creation Wizard")); - setSubTitle(tr("Welcome to the Account creation wizard of SFLPhone")); + setTitle(tr2i18n("Account Creation Wizard")); + setSubTitle(tr2i18n("Welcome to the Account creation wizard of SFLPhone")); - introLabel = new QLabel(tr("This wizard will help you setting up an account.")); + introLabel = new QLabel(tr2i18n("This wizard will help you setting up an account.")); introLabel->setWordWrap(true); QVBoxLayout *layout = new QVBoxLayout; @@ -300,11 +301,11 @@ int WizardIntroPage::nextId() const WizardAccountAutoManualPage::WizardAccountAutoManualPage(QWidget *parent) : QWizardPage(parent) { - setTitle(tr("Accounts")); - setSubTitle(tr("Please choose between those options :")); + setTitle(tr2i18n("Accounts")); + setSubTitle(tr2i18n("Please choose between those options :")); - radioButton_SFL = new QRadioButton(tr("Create a free SIP/IAX2 account on sflphone.org")); - radioButton_manual = new QRadioButton(tr("Register an existing SIP/IAX2 account")); + radioButton_SFL = new QRadioButton(tr2i18n("Create a free SIP/IAX2 account on sflphone.org")); + radioButton_manual = new QRadioButton(tr2i18n("Register an existing SIP/IAX2 account")); radioButton_SFL->setChecked(true); registerField(FIELD_SFL_ACCOUNT, radioButton_SFL); @@ -343,11 +344,11 @@ int WizardAccountAutoManualPage::nextId() const WizardAccountTypePage::WizardAccountTypePage(QWidget *parent) : QWizardPage(parent) { - setTitle(tr("VoIP Protocols")); - setSubTitle(tr("Choose the account type :")); + setTitle(tr2i18n("VoIP Protocols")); + setSubTitle(tr2i18n("Choose the account type :")); - radioButton_SIP = new QRadioButton(tr("Create a SIP (Session Initiation Protocol) account")); - radioButton_IAX = new QRadioButton(tr("Create a IAX2 (InterAsterisk eXchange) account")); + radioButton_SIP = new QRadioButton(tr2i18n("Create a SIP (Session Initiation Protocol) account")); + radioButton_IAX = new QRadioButton(tr2i18n("Create a IAX2 (InterAsterisk eXchange) account")); radioButton_SIP->setChecked(true); registerField(FIELD_SIP_ACCOUNT, radioButton_SIP); @@ -386,10 +387,10 @@ int WizardAccountTypePage::nextId() const WizardAccountEmailAddressPage::WizardAccountEmailAddressPage(QWidget *parent) : QWizardPage(parent) { - setTitle(tr("Optionnal Email Address")); - setSubTitle(tr("This email address will be used to send your voicemail messages.")); + setTitle(tr2i18n("Optionnal Email Address")); + setSubTitle(tr2i18n("This email address will be used to send your voicemail messages.")); - label_emailAddress = new QLabel(tr("Email address")); + label_emailAddress = new QLabel(tr2i18n("Email address")); lineEdit_emailAddress = new QLineEdit(); registerField(FIELD_EMAIL_ADDRESS, lineEdit_emailAddress); @@ -423,18 +424,18 @@ WizardAccountFormPage::WizardAccountFormPage(int type, QWidget *parent) this->type = type; if(type == SIP) { - setTitle(tr("SIP Account Settings")); + setTitle(tr2i18n("SIP Account Settings")); } else { - setTitle(tr("IAX2 Account Settings")); + setTitle(tr2i18n("IAX2 Account Settings")); } - setSubTitle(tr("Please full these settings fields.")); + setSubTitle(tr2i18n("Please full these settings fields.")); - label_alias = new QLabel(tr("Alias")); - label_server = new QLabel(tr("Server")); - label_user = new QLabel(tr("User")); - label_password = new QLabel(tr("Password")); + label_alias = new QLabel(tr2i18n("Alias *")); + label_server = new QLabel(tr2i18n("Server *")); + label_user = new QLabel(tr2i18n("User *")); + label_password = new QLabel(tr2i18n("Password *")); lineEdit_alias = new QLineEdit; lineEdit_server = new QLineEdit; @@ -445,17 +446,17 @@ WizardAccountFormPage::WizardAccountFormPage(int type, QWidget *parent) if(type == SIP) { - registerField(FIELD_SIP_ALIAS, lineEdit_alias); - registerField(FIELD_SIP_SERVER, lineEdit_server); - registerField(FIELD_SIP_USER, lineEdit_user); - registerField(FIELD_SIP_PASSWORD, lineEdit_password); + registerField(QString(FIELD_SIP_ALIAS) + "*", lineEdit_alias); + registerField(QString(FIELD_SIP_SERVER) + "*", lineEdit_server); + registerField(QString(FIELD_SIP_USER) + "*", lineEdit_user); + registerField(QString(FIELD_SIP_PASSWORD) + "*", lineEdit_password); } else { - registerField(FIELD_IAX_ALIAS, lineEdit_alias); - registerField(FIELD_IAX_SERVER, lineEdit_server); - registerField(FIELD_IAX_USER, lineEdit_user); - registerField(FIELD_IAX_PASSWORD, lineEdit_password); + registerField(QString(FIELD_IAX_ALIAS) + "*", lineEdit_alias); + registerField(QString(FIELD_IAX_SERVER) + "*", lineEdit_server); + registerField(QString(FIELD_IAX_USER) + "*", lineEdit_user); + registerField(QString(FIELD_IAX_PASSWORD) + "*", lineEdit_password); } QFormLayout *layout = new QFormLayout; @@ -506,11 +507,11 @@ int WizardAccountFormPage::nextId() const WizardAccountStunPage::WizardAccountStunPage(QWidget *parent) : QWizardPage(parent) { - setTitle(tr("Network Address Translation (NAT)")); - setSubTitle(tr("You should probably enable this option if you're placed under a firewall :")); + setTitle(tr2i18n("Network Address Translation (NAT)")); + setSubTitle(tr2i18n("You should probably enable this option if you're placed under a firewall :")); - checkBox_enableStun = new QCheckBox(tr("Enable STUN")); - label_StunServer = new QLabel(tr("Stun Server")); + checkBox_enableStun = new QCheckBox(tr2i18n("Enable STUN")); + label_StunServer = new QLabel(tr2i18n("Stun Server")); lineEdit_StunServer = new QLineEdit(); registerField(FIELD_ENABLE_STUN, checkBox_enableStun); @@ -544,8 +545,8 @@ int WizardAccountStunPage::nextId() const WizardAccountConclusionPage::WizardAccountConclusionPage(QWidget *parent) : QWizardPage(parent) { - setTitle(tr("Account Definition Finished")); - setSubTitle(tr("After checking the settings you chose, click \"Finish\" to create the account.")); + setTitle(tr2i18n("Account Definition Finished")); + setSubTitle(tr2i18n("After checking the settings you chose, click \"Finish\" to create the account.")); QVBoxLayout *layout = new QVBoxLayout; setLayout(layout); diff --git a/sflphone_kde/CMakeLists.txt b/sflphone_kde/CMakeLists.txt index 875449c2b0357177561c0f978cadf39553010be9..1b07cebc255ca88a003c7469571580955e307277 100644 --- a/sflphone_kde/CMakeLists.txt +++ b/sflphone_kde/CMakeLists.txt @@ -5,6 +5,7 @@ include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} ) INCLUDE ( ${CMAKE_ROOT}/Modules/FindQt4.cmake ) INCLUDE( ${QT_USE_FILE} ) +ADD_DEFINITIONS(${KDE4_DEFINITIONS} ${QT_DEFINITIONS} -fexceptions -DDATA_INSTALL_DIR="\\\"${DATA_INSTALL_DIR}\\\"") SET( sflphone_kde_SRCS @@ -41,7 +42,7 @@ QT4_ADD_RESOURCES(QtApp_RCC_SRCS ${QtApp_RCCS}) kde4_add_ui_files(sflphone_kde_SRCS sflphone_kdeview_base.ui ConfigDialog.ui) -kde4_add_kcfg_files(sflphone_kde_SRCS settings.kcfgc ) +#kde4_add_kcfg_files(sflphone_kde_SRCS settings.kcfgc ) kde4_add_executable(sflphone_kde ${sflphone_kde_SRCS} ${QtApp_RCC_SRCS}) @@ -53,7 +54,7 @@ install(TARGETS sflphone_kde DESTINATION ${BIN_INSTALL_DIR}) ########### install files ############### install( FILES sflphone_kde.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) -install( FILES sflphone_kde.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) +#install( FILES sflphone_kde.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) install( FILES sflphone_kdeui.rc DESTINATION ${DATA_INSTALL_DIR}/sflphone_kde ) diff --git a/sflphone_kde/Call.cpp b/sflphone_kde/Call.cpp index 194ba178c1ebc0bf78abff88b520c72b949b6947..003e86d4bb845150ea0064eba59e3202ce61fc0e 100644 --- a/sflphone_kde/Call.cpp +++ b/sflphone_kde/Call.cpp @@ -285,8 +285,8 @@ QListWidgetItem * Call::getHistoryItem() QWidget * Call::getHistoryItemWidget() { - if(historyItemWidget == NULL && historyState != NONE) - { +// if(historyItemWidget == NULL && historyState != NONE) +// { historyItemWidget = new QWidget(); labelHistoryIcon = new QLabel(); labelHistoryIcon->setPixmap(QPixmap(historyIcons[historyState])); @@ -315,7 +315,7 @@ QWidget * Call::getHistoryItemWidget() mainLayout->addLayout(descr); mainLayout->addItem(horizontalSpacer); historyItemWidget->setLayout(mainLayout); - } +// } return historyItemWidget; } diff --git a/sflphone_kde/ConfigDialog.cpp b/sflphone_kde/ConfigDialog.cpp index 7e5eefee45cb2d9c9ff10272ec0a2eaff9c404f3..be7b371d62d761ec91a49db1e737af8591665023 100644 --- a/sflphone_kde/ConfigDialog.cpp +++ b/sflphone_kde/ConfigDialog.cpp @@ -154,12 +154,24 @@ void ConfigurationDialog::loadOptions() //pulseaudio settings checkBox_pulseAudioVolumeAlter->setCheckState(configurationManager.getPulseAppVolumeControl() ? Qt::Checked : Qt::Unchecked); - ////////////////////// + /////////////////////// ////Record settings//// - ////////////////////// + /////////////////////// urlcomborequester_destinationFolder->setUrl(KUrl::fromPath(configurationManager.getRecordPath())); + + ///////////////////////////// + ////Address book settings//// + ///////////////////////////// + + qDebug() << "getAddressbookSettings() : " << configurationManager.getAddressbookSettings().value(); + MapStringInt addressBookSettings = configurationManager.getAddressbookSettings().value(); + spinBox_maxResults->setValue(addressBookSettings[ADDRESSBOOK_MAX_RESULTS]); + checkBox_displayPhoto->setChecked(addressBookSettings[ADDRESSBOOK_DISPLAY_CONTACT_PHOTO]); + checkBox_business->setChecked(addressBookSettings[ADDRESSBOOK_DISPLAY_BUSINESS]); + checkBox_mobile->setChecked(addressBookSettings[ADDRESSBOOK_DISPLAY_MOBILE]); + checkBox_home->setChecked(addressBookSettings[ADDRESSBOOK_DISPLAY_HOME]); } @@ -240,6 +252,24 @@ void ConfigurationDialog::saveOptions() qDebug() << "setting pulseaudio settings"; if(checkBox_pulseAudioVolumeAlter->checkState() != (configurationManager.getPulseAppVolumeControl() ? Qt::Checked : Qt::Unchecked)) configurationManager.setPulseAppVolumeControl(); } + + /////////////////////// + ////Record settings//// + /////////////////////// + + configurationManager.setRecordPath(urlcomborequester_destinationFolder->url().url()); + + ///////////////////////////// + ////Address Book settings//// + ///////////////////////////// + + MapStringInt addressBookSettings = MapStringInt(); + addressBookSettings[ADDRESSBOOK_MAX_RESULTS] = spinBox_maxResults->value(); + addressBookSettings[ADDRESSBOOK_DISPLAY_CONTACT_PHOTO] = checkBox_displayPhoto->isChecked(); + addressBookSettings[ADDRESSBOOK_DISPLAY_BUSINESS] = checkBox_business->isChecked(); + addressBookSettings[ADDRESSBOOK_DISPLAY_MOBILE] = checkBox_mobile->isChecked(); + addressBookSettings[ADDRESSBOOK_DISPLAY_HOME] = checkBox_home->isChecked(); + configurationManager.setAddressbookSettings(addressBookSettings); } diff --git a/sflphone_kde/ConfigDialog.ui b/sflphone_kde/ConfigDialog.ui index 004891771704ededcbfe3d57ebc0fdbf7d730ccf..ca046897274c6a6cb327db965999e3dd2ee0d27f 100644 --- a/sflphone_kde/ConfigDialog.ui +++ b/sflphone_kde/ConfigDialog.ui @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>711</width> - <height>456</height> + <width>702</width> + <height>449</height> </rect> </property> <property name="minimumSize" > @@ -145,6 +145,11 @@ <string>Record</string> </property> </item> + <item> + <property name="text" > + <string>Address Book</string> + </property> + </item> </widget> </item> <item> @@ -164,7 +169,7 @@ <item> <widget class="QStackedWidget" name="stackedWidget_options" > <property name="currentIndex" > - <number>0</number> + <number>5</number> </property> <widget class="QWidget" name="page_general" > <layout class="QVBoxLayout" name="verticalLayout_18" > @@ -179,7 +184,7 @@ </widget> </item> <item> - <widget class="Line" name="line_ConfigGeneral" > + <widget class="Line" name="line_configGeneral" > <property name="orientation" > <enum>Qt::Horizontal</enum> </property> @@ -306,14 +311,17 @@ </widget> </item> <item> - <widget class="QWidget" native="1" name="widget_fullConfigGeneral" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> + <spacer name="verticalSpacer_configGeneral" > + <property name="orientation" > + <enum>Qt::Vertical</enum> </property> - </widget> + <property name="sizeHint" stdset="0" > + <size> + <width>20</width> + <height>16777215</height> + </size> + </property> + </spacer> </item> </layout> </widget> @@ -433,7 +441,17 @@ </widget> </item> <item> - <widget class="QWidget" native="1" name="widget_fullConfigDisplay" /> + <spacer name="verticalSpacer_configDisplay" > + <property name="orientation" > + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0" > + <size> + <width>20</width> + <height>16777215</height> + </size> + </property> + </spacer> </item> </layout> </widget> @@ -1179,15 +1197,146 @@ </widget> </item> <item> - <widget class="QWidget" native="1" name="widget_fullConfigRecord" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Preferred" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> + <spacer name="verticalSpacer_configRecord" > + <property name="orientation" > + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0" > + <size> + <width>20</width> + <height>16777215</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <widget class="QWidget" name="page_addressBook" > + <layout class="QVBoxLayout" name="verticalLayout_4" > + <item> + <widget class="QLabel" name="label_configAddressBook" > + <property name="text" > + <string>Configure address book settings</string> + </property> + </widget> + </item> + <item> + <widget class="Line" name="line_configAddressBook" > + <property name="orientation" > + <enum>Qt::Horizontal</enum> </property> </widget> </item> + <item> + <widget class="QWidget" native="1" name="widget_configAddressBookGeneral" > + <layout class="QFormLayout" name="formLayout_5" > + <property name="fieldGrowthPolicy" > + <enum>QFormLayout::AllNonFixedFieldsGrow</enum> + </property> + <item row="1" column="0" > + <widget class="QLabel" name="label_maxResults" > + <property name="text" > + <string>Maximum &results</string> + </property> + <property name="buddy" > + <cstring>horizontalSlider_maxResults</cstring> + </property> + </widget> + </item> + <item row="1" column="1" > + <widget class="QWidget" native="1" name="widget_maxResults" > + <layout class="QHBoxLayout" name="horizontalLayout_4" > + <property name="spacing" > + <number>0</number> + </property> + <property name="margin" > + <number>0</number> + </property> + <item> + <widget class="QSlider" name="horizontalSlider_maxResults" > + <property name="minimum" > + <number>25</number> + </property> + <property name="maximum" > + <number>50</number> + </property> + <property name="orientation" > + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="QSpinBox" name="spinBox_maxResults" > + <property name="minimum" > + <number>25</number> + </property> + <property name="maximum" > + <number>50</number> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="2" column="0" > + <widget class="QCheckBox" name="checkBox_displayPhoto" > + <property name="text" > + <string>Display &photo if available</string> + </property> + </widget> + </item> + </layout> + <zorder>label_maxResults</zorder> + <zorder>spinBox_maxResults</zorder> + <zorder>horizontalSlider_maxResults</zorder> + <zorder>widget_maxResults</zorder> + <zorder>checkBox_displayPhoto</zorder> + <zorder>groupBox_displayTypes</zorder> + </widget> + </item> + <item> + <widget class="QGroupBox" name="groupBox_displayTypes" > + <property name="title" > + <string>Display phone numbers of these &types :</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_7" > + <item> + <widget class="QCheckBox" name="checkBox_business" > + <property name="text" > + <string>&Business</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="checkBox_mobile" > + <property name="text" > + <string>&Mobile</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="checkBox_home" > + <property name="text" > + <string>&Home</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <spacer name="verticalSpacer_configAddressBook" > + <property name="orientation" > + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0" > + <size> + <width>20</width> + <height>229</height> + </size> + </property> + </spacer> + </item> </layout> </widget> </widget> @@ -1311,8 +1460,8 @@ <y>89</y> </hint> <hint type="destinationlabel" > - <x>484</x> - <y>88</y> + <x>682</x> + <y>98</y> </hint> </hints> </connection> @@ -1323,8 +1472,8 @@ <slot>setValue(int)</slot> <hints> <hint type="sourcelabel" > - <x>484</x> - <y>88</y> + <x>682</x> + <y>98</y> </hint> <hint type="destinationlabel" > <x>352</x> @@ -1332,5 +1481,37 @@ </hint> </hints> </connection> + <connection> + <sender>horizontalSlider_maxResults</sender> + <signal>valueChanged(int)</signal> + <receiver>spinBox_maxResults</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel" > + <x>599</x> + <y>52</y> + </hint> + <hint type="destinationlabel" > + <x>661</x> + <y>55</y> + </hint> + </hints> + </connection> + <connection> + <sender>spinBox_maxResults</sender> + <signal>valueChanged(int)</signal> + <receiver>horizontalSlider_maxResults</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel" > + <x>650</x> + <y>59</y> + </hint> + <hint type="destinationlabel" > + <x>585</x> + <y>56</y> + </hint> + </hints> + </connection> </connections> </ui> diff --git a/sflphone_kde/SFLPhone.cpp b/sflphone_kde/SFLPhone.cpp index e000ab2491f5c735a7139f25ea03b56f6a3b31e3..b82ac7d854a98ee5de91bef401c9de52ad8583de 100644 --- a/sflphone_kde/SFLPhone.cpp +++ b/sflphone_kde/SFLPhone.cpp @@ -22,22 +22,23 @@ SFLPhone::SFLPhone(QWidget *parent) // tell the KXmlGuiWindow that this is indeed the main widget setCentralWidget(view); - - // then, setup our actions // add a status bar // statusBar()->show(); - // a call to KXmlGuiWindow::setupGUI() populates the GUI - // with actions, using KXMLGUI. - // It also applies the saved mainwindow settings, if any, and ask the - // mainwindow to automatically save settings if changed: window size, - // toolbar position, icon size, etc. - - setupActions(); - createGUI("/home/jquentin/sflphone/sflphone_kde/sflphone_kdeui.rc"); + setWindowIcon(QIcon(ICON_SFLPHONE)); + + setupActions(); + + QString str = QString(DATA_INSTALL_DIR) + "/sflphone_kde/sflphone_kdeui.rc"; + qDebug() << "str = " << str ; + createGUI(str); + + connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), + this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason))); + } SFLPhone::~SFLPhone() @@ -47,17 +48,6 @@ SFLPhone::~SFLPhone() void SFLPhone::setupActions() { qDebug() << "setupActions"; -// KStandardAction::openNew(this, SLOT(fileNew()), actionCollection()); -// KStandardAction::quit(qApp, SLOT(quit()), actionCollection()); - -// KStandardAction::preferences(this, SLOT(optionsPreferences()), actionCollection()); - -// custom menu and menu item - the slot is in the class testkde4appfwView -// KAction *custom = new KAction(KIcon("colorize"), i18n("Swi&tch Colors"), this); -// actionCollection()->addAction( QLatin1String("switch_action"), custom ); -// connect(custom, SIGNAL(triggered(bool)), view, SLOT(switchColors())); -// KAction * action_quit = KStandardAction::quit(qApp, SLOT(closeAllWindows()), menu_Actions); -// menu_Actions->addAction(action_quit); actionCollection()->addAction("action_accept", view->action_accept); actionCollection()->addAction("action_refuse", view->action_refuse); @@ -70,43 +60,14 @@ void SFLPhone::setupActions() KAction * action_quit = KStandardAction::quit(qApp, SLOT(closeAllWindows()), 0); actionCollection()->addAction("action_quit", action_quit); - //KMenu * menu_Actions = new KMenu(tr2i18n("&Actions")); - //actionCollection()->addMenu("Actions", menu_Actions); - //menu_Actions->setObjectName(QString::fromUtf8("menu_Actions")); -// menu_Actions->addAction(view->action_accept); -// menu_Actions->addAction(view->action_refuse); -// menu_Actions->addAction(view->action_hold); -// menu_Actions->addAction(view->action_transfer); -// menu_Actions->addAction(view->action_record); -// menu_Actions->addSeparator(); -// menu_Actions->addAction(view->action_history); -// menu_Actions->addAction(view->action_addressBook); -// menu_Actions->addSeparator(); -// menu_Actions->addAction(view->action_mailBox); -// menu_Actions->addSeparator(); -// KAction * action_quit = KStandardAction::quit(qApp, SLOT(closeAllWindows()), 0); -// menu_Actions->addAction(action_quit); -// qDebug() << "menuBar()->addMenu(menu_Actions) : " << menuBar()->addMenu(menu_Actions); - //menuBar()->addMenu(menu_Actions); actionCollection()->addAction("action_displayVolumeControls", view->action_displayVolumeControls); actionCollection()->addAction("action_displayDialpad", view->action_displayDialpad); + actionCollection()->addAction("action_configureSflPhone", view->action_configureSflPhone); actionCollection()->addAction("action_configureAccounts", view->action_configureAccounts); actionCollection()->addAction("action_configureAudio", view->action_configureAudio); - actionCollection()->addAction("action_configureSflPhone", view->action_configureSflPhone); actionCollection()->addAction("action_accountCreationWizard", view->action_accountCreationWizard); -// KMenu * menu_Configure = new KMenu(tr2i18n("&Settings")); -// menu_Configure->setObjectName(QString::fromUtf8("menu_Configure")); -// menu_Configure->addAction(view->action_displayVolumeControls); -// menu_Configure->addAction(view->action_displayDialpad); -// menu_Configure->addSeparator(); -// menu_Configure->addAction(view->action_configureAccounts); -// menu_Configure->addAction(view->action_configureAudio); -// menu_Configure->addAction(view->action_configureSflPhone); -// menu_Configure->addSeparator(); -// menu_Configure->addAction(view->action_accountCreationWizard); -// menuBar()->addMenu(menu_Configure); QStatusBar * statusbar = new QStatusBar(this); statusbar->setObjectName(QString::fromUtf8("statusbar")); @@ -126,6 +87,14 @@ void SFLPhone::setupActions() toolbar->addAction(view->action_mailBox); + trayIconMenu = new QMenu(this); + trayIconMenu->addAction(action_quit); + + trayIcon = new QSystemTrayIcon(this->windowIcon(), this); + trayIcon->setContextMenu(trayIconMenu); + trayIcon->show(); + qDebug() << "trayicon = " << trayIcon->icon(); + } @@ -142,4 +111,39 @@ bool SFLPhone::queryClose() } +void SFLPhone::iconActivated(QSystemTrayIcon::ActivationReason reason) +{ + qDebug() << "on_trayIcon_activated"; + switch (reason) { + case QSystemTrayIcon::Trigger: + case QSystemTrayIcon::DoubleClick: + qDebug() << "Tray icon clicked."; + qDebug() << "windowState() = " << windowState(); + if(isActiveWindow()) + { + qDebug() << "isactive"; + hide(); + } + else + { + qDebug() << "isnotactive"; + hide(); + show(); + activateWindow(); + } + break; +// case QSystemTrayIcon::DoubleClick: +// iconComboBox->setCurrentIndex((iconComboBox->currentIndex() + 1) +// % iconComboBox->count()); +// break; +// case QSystemTrayIcon::MiddleClick: +// showMessage(); +// break; + default: + qDebug() << "Tray icon activated with unknown reason."; + break; + } +} + + diff --git a/sflphone_kde/SFLPhone.h b/sflphone_kde/SFLPhone.h index ff7aeea15f69fa436592c2da4d0705544e80be93..f346e81fc0761fb16dd90403392e7b5fdd999a41 100644 --- a/sflphone_kde/SFLPhone.h +++ b/sflphone_kde/SFLPhone.h @@ -6,6 +6,8 @@ #include <QtGui/QListWidgetItem> #include <QtGui/QKeyEvent> #include <QErrorMessage> +#include <QSystemTrayIcon> + #include <KXmlGuiWindow> #include "ui_sflphone_kdeview_base.h" @@ -26,6 +28,9 @@ Q_OBJECT private: sflphone_kdeView * view; + QSystemTrayIcon *trayIcon; + QMenu *trayIconMenu; + protected: virtual bool queryClose(); @@ -35,6 +40,8 @@ public: ~SFLPhone(); void setupActions(); +private slots: + void iconActivated(QSystemTrayIcon::ActivationReason reason); }; diff --git a/sflphone_kde/sflphone_const.h b/sflphone_kde/sflphone_const.h index 15c62af3adf036922d532720e339b30708e9c635..e2c88c8a10c97b0aab691c4da88a57406236a800 100644 --- a/sflphone_kde/sflphone_const.h +++ b/sflphone_kde/sflphone_const.h @@ -134,6 +134,13 @@ #define CALL_STATE_CHANGE_UNHOLD_CURRENT "UNHOLD_CURRENT" #define CALL_STATE_CHANGE_UNHOLD_RECORD "UNHOLD_RECORD" +#define ADDRESSBOOK_MAX_RESULTS "ADDRESSBOOK_MAX_RESULTS" +#define ADDRESSBOOK_DISPLAY_CONTACT_PHOTO "ADDRESSBOOK_DISPLAY_CONTACT_PHOTO" +#define ADDRESSBOOK_DISPLAY_BUSINESS "ADDRESSBOOK_DISPLAY_PHONE_BUSINESS" +#define ADDRESSBOOK_DISPLAY_HOME "ADDRESSBOOK_DISPLAY_PHONE_HOME" +#define ADDRESSBOOK_DISPLAY_MOBILE "ADDRESSBOOK_DISPLAY_PHONE_MOBILE" + + #define MAX_HISTORY_CAPACITY 60 diff --git a/sflphone_kde/sflphone_kde.desktop b/sflphone_kde/sflphone_kde.desktop index 008fad44107a43fdc694af9bd4fe3eaf783ed512..3f3f7f90cde843015abbb478b65dc2dfbdca2e79 100644 --- a/sflphone_kde/sflphone_kde.desktop +++ b/sflphone_kde/sflphone_kde.desktop @@ -1,30 +1,38 @@ [Desktop Entry] -Name=KApp4 -Name[nds]=KProg4 -Name[sv]=KDE 4-program -Name[zh_TW]=KApp4 ç¨‹å¼ -Exec=kapp4 %i -caption "%c" -Icon=kapp4 +# Name=KApp4 +# Name[nds]=KProg4 +# Name[sv]=KDE 4-program +# Name[zh_TW]=KApp4 ç¨‹å¼ +# Exec=kapp4 %i -caption "%c" +# Icon=kapp4 Type=Application X-DocPath=kapp4/kapp4.html -GenericName=A KDE4 Application -GenericName[ca]=Una aplicació del KDE4 -GenericName[da]=Et KDE4-program -GenericName[de]=Eine KDE 4-Anwendung -GenericName[el]=Μία εφαÏμογή του KDE4 -GenericName[es]=Una aplicación para KDE4 -GenericName[et]=KDE4 rakendus -GenericName[hu]=KDE4-alapú alkalmazás -GenericName[it]=Applicazione KDE4 -GenericName[nds]=En KDE4-Programm -GenericName[nl]=Een KDE4-programma -GenericName[pl]=Program dla KDE4 -GenericName[pt]=Uma Aplicação do KDE4 -GenericName[pt_BR]=Uma Aplicação do KDE4 -GenericName[ru]=Приложение KDE 4 -GenericName[sk]=KDE4 aplikácia -GenericName[sr]=KDE4 програм -GenericName[sr@Latn]=KDE4 program -GenericName[sv]=Ett KDE 4-program -GenericName[zh_TW]=KDE4 æ‡‰ç”¨ç¨‹å¼ +# GenericName=A KDE4 Application +# GenericName[ca]=Una aplicació del KDE4 +# GenericName[da]=Et KDE4-program +# GenericName[de]=Eine KDE 4-Anwendung +# GenericName[el]=Μία εφαÏμογή του KDE4 +# GenericName[es]=Una aplicación para KDE4 +# GenericName[et]=KDE4 rakendus +# GenericName[hu]=KDE4-alapú alkalmazás +# GenericName[it]=Applicazione KDE4 +# GenericName[nds]=En KDE4-Programm +# GenericName[nl]=Een KDE4-programma +# GenericName[pl]=Program dla KDE4 +# GenericName[pt]=Uma Aplicação do KDE4 +# GenericName[pt_BR]=Uma Aplicação do KDE4 +# GenericName[ru]=Приложение KDE 4 +# GenericName[sk]=KDE4 aplikácia +# GenericName[sr]=KDE4 програм +# GenericName[sr@Latn]=KDE4 program +# GenericName[sv]=Ett KDE 4-program +# GenericName[zh_TW]=KDE4 æ‡‰ç”¨ç¨‹å¼ Terminal=false + +Name=SFLphone VoIP KDE4 client +GenericName=Telephone +Comment=Call and receive calls with SIP or IAX protocols +Exec=sflphone_kde +Icon=sflphone.png +StartupNotify=true +Categories=Network;Telephony; diff --git a/sflphone_kde/sflphone_kde.kdevelop b/sflphone_kde/sflphone_kde.kdevelop index 8c807196d441778d51afadbc34d012ea70bcb52e..9a26c0b469c05ca7f18acc6c4118bfc96ab3c24b 100644 --- a/sflphone_kde/sflphone_kde.kdevelop +++ b/sflphone_kde/sflphone_kde.kdevelop @@ -121,7 +121,7 @@ </cppsupportpart> <kdevcustomproject> <run> - <mainprogram>/home/jquentin/sflphone_kde/build</mainprogram> + <mainprogram>/home/jquentin/sflphone/sflphone_kde/build</mainprogram> <programargs/> <terminal>false</terminal> <autocompile>false</autocompile> @@ -140,7 +140,7 @@ <autokdesu>false</autokdesu> <globaldebugarguments/> <useglobalprogram>false</useglobalprogram> - <globalcwd>/home/jquentin/sflphone_kde</globalcwd> + <globalcwd>/home/jquentin/sflphone/sflphone_kde</globalcwd> <directoryradio>executable</directoryradio> </run> <build> @@ -268,6 +268,6 @@ <LICENSEFILE>COPYING</LICENSEFILE> <VERSION>0.1</VERSION> <YEAR>2009</YEAR> - <dest>/home/jquentin/sflphone_kde</dest> + <dest>/home/jquentin/sflphone/sflphone_kde</dest> </substmap> </kdevelop> diff --git a/sflphone_kde/sflphone_kdeview.cpp b/sflphone_kde/sflphone_kdeview.cpp index 7518cb315524842d1b1fecff08b81958c74cce70..4bcd8b7d9dfb971a6d3c4a7ebcacb2c682222a5d 100644 --- a/sflphone_kde/sflphone_kdeview.cpp +++ b/sflphone_kde/sflphone_kdeview.cpp @@ -19,12 +19,14 @@ ***************************************************************************/ #include "sflphone_kdeview.h" -#include "settings.h" +//#include "settings.h" #include <klocale.h> #include <QtGui/QLabel> #include <QtGui/QContextMenuEvent> #include <QtGui/QMenu> +#include <QtGui/QBrush> +#include <QtGui/QPalette> #include <kstandardaction.h> #include <kactioncollection.h> @@ -37,13 +39,11 @@ #include "ActionSetAccountFirst.h" #include "ContactItemWidget.h" - #include <kabc/addressbook.h> #include <kabc/stdaddressbook.h> #include <kabc/addresseelist.h> //#include <kabc/ldapclient.h> - using namespace KABC; ConfigurationDialog * sflphone_kdeView::configDialog; @@ -67,7 +67,7 @@ sflphone_kdeView::sflphone_kdeView(QWidget *parent) connect(&callManager, SIGNAL(error(MapStringString)), this, SLOT(on1_error(MapStringString))); connect(&callManager, SIGNAL(incomingCall(const QString &, const QString &, const QString &)), - this, SLOT(on1_incomingCall(const QString &, const QString &, const QString &))); + this, SLOT(on1_incomingCall(const QString &, const QString &))); connect(&callManager, SIGNAL(incomingMessage(const QString &, const QString &)), this, SLOT(on1_incomingMessage(const QString &, const QString &))); connect(&callManager, SIGNAL(voiceMailNotify(const QString &, int)), @@ -75,6 +75,10 @@ sflphone_kdeView::sflphone_kdeView(QWidget *parent) connect(&callManager, SIGNAL(volumeChanged(const QString &, double)), this, SLOT(on1_volumeChanged(const QString &, double))); + QPalette pal = QPalette(palette()); + pal.setColor(QPalette::AlternateBase, Qt::lightGray); + setPalette(pal); + loadWindow(); } @@ -146,13 +150,23 @@ void sflphone_kdeView::addCallToCallList(Call * call) void sflphone_kdeView::addCallToCallHistory(Call * call) { + qDebug() << "addCallToCallHistory1"; QListWidgetItem * item = call->getHistoryItem(); + qDebug() << "addCallToCallHistory2"; QWidget * widget = call->getHistoryItemWidget(); + qDebug() << "addCallToCallHistory3"; if(item && widget) { + qDebug() << "addCallToCallHistory4"; listWidget_callHistory->addItem(item); + qDebug() << "addCallToCallHistory5"; + qDebug() << "item = " << item; + qDebug() << "widget = " << widget; + qDebug() << "itemWidget(item) = " << listWidget_callHistory->itemWidget(item); listWidget_callHistory->setItemWidget(item, widget); + qDebug() << "addCallToCallHistory6"; } + qDebug() << "addCallToCallHistory7"; } void sflphone_kdeView::addContactToContactList(Contact * contact) @@ -188,11 +202,13 @@ void sflphone_kdeView::typeString(QString str) { qDebug() << "In call history."; lineEdit_searchHistory->setText(lineEdit_searchHistory->text() + str); + lineEdit_searchHistory->setFocus(); } if(stackedWidget_screen->currentWidget() == page_addressBook) { qDebug() << "In address book."; lineEdit_addressBook->setText(lineEdit_addressBook->text() + str); + lineEdit_addressBook->setFocus(); } } @@ -558,20 +574,24 @@ void sflphone_kdeView::updateCallHistory() while(listWidget_callHistory->count() > 0) { QListWidgetItem * item = listWidget_callHistory->takeItem(0); - qDebug() << "take item " << item->text(); + qDebug() << "take item " << item->text() << " ; widget = " << callList->findCallByHistoryItem(item); } - //listWidget_callHistory->clear(); QString textSearched = lineEdit_searchHistory->text(); for(int i = 0 ; i < callList->size() ; i++) { Call * call = (*callList)[i]; qDebug() << "" << call->getCallId(); - if(call->getState() == CALL_STATE_OVER && call->getHistoryState() != NONE && call->getHistoryItem()->text().contains(textSearched)) + if( + call->getState() == CALL_STATE_OVER && + call->getHistoryState() != NONE && + (call->getPeerPhoneNumber().contains(textSearched) || call->getPeerName().contains(textSearched)) + ) { - qDebug() << "call->getItem()->text()=" << call->getHistoryItem()->text() << " contains textSearched=" << textSearched; + qDebug() << "call->getPeerPhoneNumber()=" << call->getPeerPhoneNumber() << " contains textSearched=" << textSearched; addCallToCallHistory(call); } } + alternateColors(listWidget_callHistory); } void sflphone_kdeView::updateAddressBook() @@ -594,6 +614,23 @@ void sflphone_kdeView::updateAddressBook() qDebug() << "contact->getItem()->text()=" << contact->getItem()->text() << " contains textSearched=" << textSearched; addContactToContactList(contact); } + alternateColors(listWidget_addressBook); +} + +void sflphone_kdeView::alternateColors(QListWidget * listWidget) +{ +//TODO + qDebug() << "alternateColors"; + qDebug() << "listWidget->count() = " << listWidget->count(); + for(int i = 0 ; i < listWidget->count(); i++) + { + QListWidgetItem* item = listWidget->item(i); + QBrush c = (i % 2 == 1) ? palette().base() : palette().alternateBase(); + qDebug() << "brush = " << c; + item->setBackground( c ); + } + listWidget->setUpdatesEnabled( true ); + } QVector<Contact *> sflphone_kdeView::findContactsInKAddressBook(QString textSearched) @@ -869,6 +906,28 @@ void sflphone_kdeView::on_listWidget_addressBook_itemDoubleClicked(QListWidgetIt actionb(call, CALL_ACTION_ACCEPT); } +void sflphone_kdeView::on_stackedWidget_screen_currentChanged(int index) +{ + qDebug() << "on_stackedWidget_screen_currentChanged"; + switch(index) + { + case 0: + qDebug() << "Switched to call list screen."; + break; + case 1: + qDebug() << "Switched to call history screen."; + updateCallHistory(); + break; + case 2: + qDebug() << "Switched to address book screen."; + updateAddressBook(); + break; + default: + qDebug() << "Error : reached an unknown index \"" << index << "\" with stackedWidget_screen."; + break; + } +} + void sflphone_kdeView::contextMenuEvent(QContextMenuEvent *event) { QMenu menu(this); diff --git a/sflphone_kde/sflphone_kdeview.h b/sflphone_kde/sflphone_kdeview.h index 77a04827a7d6389794f4e3648c3e7c30d127571d..1aba7a7669b408aa604b479028d2aa29e589b398 100644 --- a/sflphone_kde/sflphone_kdeview.h +++ b/sflphone_kde/sflphone_kdeview.h @@ -86,6 +86,8 @@ private slots: void actionb(Call * call, call_action action); void action(QListWidgetItem * item, call_action action); + void alternateColors(QListWidget * listWidget); + void addCallToCallList(Call * call); void addCallToCallHistory(Call * call); void addContactToContactList(Contact * contact); @@ -171,7 +173,9 @@ private slots: void on_listWidget_callHistory_itemDoubleClicked(QListWidgetItem * item); void on_listWidget_addressBook_currentItemChanged(); void on_listWidget_addressBook_itemDoubleClicked(QListWidgetItem * item); - + + void on_stackedWidget_screen_currentChanged(int index); + void on1_callStateChanged(const QString &callID, const QString &state); void on1_error(MapStringString details); void on1_incomingCall(const QString &accountID, const QString &callID/*, const QString &from*/); diff --git a/sflphone_kde/sflphone_kdeview_base.ui b/sflphone_kde/sflphone_kdeview_base.ui index e98d6ff784a1ae64389f19d39bcdb768087f8207..e704a66c0dd6212f9d0422b7b5506118b7e38356 100644 --- a/sflphone_kde/sflphone_kdeview_base.ui +++ b/sflphone_kde/sflphone_kdeview_base.ui @@ -1,507 +1,544 @@ -<ui version="4.0" > +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> <class>SFLPhone</class> - <widget class="QWidget" name="SFLPhone" > - <property name="geometry" > + <widget class="QWidget" name="SFLPhone"> + <property name="geometry"> <rect> <x>0</x> <y>0</y> - <width>391</width> - <height>349</height> + <width>329</width> + <height>475</height> </rect> </property> - <property name="windowTitle" > + <property name="windowTitle"> <string>Form</string> </property> - <layout class="QVBoxLayout" name="verticalLayout" > + <layout class="QVBoxLayout" name="verticalLayout"> + <property name="spacing"> + <number>1</number> + </property> + <property name="margin"> + <number>2</number> + </property> <item> - <widget class="QStackedWidget" name="stackedWidget_screen" > - <property name="currentIndex" > + <widget class="QStackedWidget" name="stackedWidget_screen"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="currentIndex"> <number>0</number> </property> - <widget class="QWidget" name="page_callList" > - <layout class="QHBoxLayout" name="horizontalLayout_3" > + <widget class="QWidget" name="page_callList"> + <layout class="QHBoxLayout" name="horizontalLayout_3"> <item> - <widget class="QListWidget" name="listWidget_callList" /> + <widget class="QListWidget" name="listWidget_callList"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> </item> </layout> </widget> - <widget class="QWidget" name="page_callHistory" > - <layout class="QVBoxLayout" name="verticalLayout_3" > + <widget class="QWidget" name="page_callHistory"> + <layout class="QVBoxLayout" name="verticalLayout_3"> <item> - <widget class="QListWidget" name="listWidget_callHistory" /> + <widget class="QListWidget" name="listWidget_callHistory"/> </item> <item> - <widget class="QLineEdit" name="lineEdit_searchHistory" /> + <widget class="QLineEdit" name="lineEdit_searchHistory"/> </item> </layout> </widget> - <widget class="QWidget" name="page_addressBook" > - <layout class="QVBoxLayout" name="verticalLayout_5" > + <widget class="QWidget" name="page_addressBook"> + <layout class="QVBoxLayout" name="verticalLayout_5"> <item> - <widget class="QListWidget" name="listWidget_addressBook" /> + <widget class="QListWidget" name="listWidget_addressBook"/> </item> <item> - <widget class="QLineEdit" name="lineEdit_addressBook" /> + <widget class="QLineEdit" name="lineEdit_addressBook"/> </item> </layout> </widget> </widget> </item> <item> - <layout class="QHBoxLayout" name="horizontalLayout" > - <property name="spacing" > - <number>0</number> + <widget class="QWidget" name="widget_dialpadAndControls" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <item> - <widget class="QWidget" native="1" name="widget_recVol" > - <property name="layoutDirection" > - <enum>Qt::RightToLeft</enum> - </property> - <layout class="QVBoxLayout" name="verticalLayout_4" > - <property name="spacing" > - <number>0</number> - </property> - <property name="margin" > - <number>0</number> - </property> - <item> - <widget class="QSlider" name="slider_recVol" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Fixed" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize" > - <size> - <width>0</width> - <height>50</height> - </size> - </property> - <property name="layoutDirection" > - <enum>Qt::RightToLeft</enum> - </property> - <property name="autoFillBackground" > - <bool>false</bool> - </property> - <property name="maximum" > - <number>100</number> - </property> - <property name="orientation" > - <enum>Qt::Vertical</enum> - </property> - <property name="invertedAppearance" > - <bool>false</bool> - </property> - <property name="invertedControls" > - <bool>false</bool> - </property> - <property name="tickPosition" > - <enum>QSlider::NoTicks</enum> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="toolButton_recVol" > - <property name="text" > - <string>...</string> - </property> - <property name="icon" > - <iconset> - <normaloff>:/Images/mic_75.svg</normaloff>:/Images/mic_75.svg</iconset> - </property> - <property name="checkable" > - <bool>true</bool> - </property> - </widget> - </item> - </layout> - <zorder>toolButton_recVol</zorder> - <zorder>slider_recVol</zorder> - </widget> - </item> - <item> - <widget class="QWidget" native="1" name="widget_dialpad" > - <layout class="QGridLayout" name="gridLayout" > - <item row="0" column="1" > - <widget class="QPushButton" name="pushButton_1" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>1</string> - </property> - </widget> - </item> - <item row="0" column="2" > - <widget class="QPushButton" name="pushButton_2" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>2</string> - </property> - <property name="shortcut" > - <string>2</string> - </property> - </widget> - </item> - <item row="0" column="3" > - <widget class="QPushButton" name="pushButton_3" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>3</string> - </property> - </widget> - </item> - <item row="1" column="1" > - <widget class="QPushButton" name="pushButton_4" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>4</string> - </property> - </widget> - </item> - <item row="1" column="2" > - <widget class="QPushButton" name="pushButton_5" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>5</string> - </property> - </widget> - </item> - <item row="1" column="3" > - <widget class="QPushButton" name="pushButton_6" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>6</string> - </property> - </widget> - </item> - <item row="2" column="1" > - <widget class="QPushButton" name="pushButton_7" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>7</string> - </property> - </widget> - </item> - <item row="2" column="2" > - <widget class="QPushButton" name="pushButton_8" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>8</string> - </property> - </widget> - </item> - <item row="2" column="3" > - <widget class="QPushButton" name="pushButton_9" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>9</string> - </property> - </widget> - </item> - <item row="3" column="1" > - <widget class="QPushButton" name="pushButton_etoile" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>*</string> - </property> - </widget> - </item> - <item row="3" column="2" > - <widget class="QPushButton" name="pushButton_0" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>0</string> - </property> - </widget> - </item> - <item row="3" column="3" > - <widget class="QPushButton" name="pushButton_diese" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text" > - <string>#</string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QWidget" native="1" name="widget_sndVol" > - <layout class="QVBoxLayout" name="verticalLayout_2" > - <property name="spacing" > - <number>0</number> - </property> - <property name="margin" > - <number>0</number> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>160</height> + </size> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="spacing"> + <number>0</number> + </property> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="QWidget" name="widget_recVol" native="true"> + <property name="layoutDirection"> + <enum>Qt::RightToLeft</enum> </property> - <item> - <widget class="QSlider" name="slider_sndVol" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Expanding" hsizetype="Fixed" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize" > - <size> - <width>0</width> - <height>50</height> - </size> - </property> - <property name="layoutDirection" > - <enum>Qt::LeftToRight</enum> - </property> - <property name="autoFillBackground" > - <bool>false</bool> - </property> - <property name="maximum" > - <number>100</number> - </property> - <property name="orientation" > - <enum>Qt::Vertical</enum> - </property> - <property name="tickPosition" > - <enum>QSlider::NoTicks</enum> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="toolButton_sndVol" > - <property name="text" > - <string>...</string> - </property> - <property name="icon" > - <iconset> - <normaloff>:/Images/speaker_75.svg</normaloff>:/Images/speaker_75.svg</iconset> - </property> - <property name="checkable" > - <bool>true</bool> - </property> - <property name="checked" > - <bool>false</bool> - </property> - </widget> - </item> - </layout> - </widget> - </item> - </layout> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <property name="spacing"> + <number>0</number> + </property> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="QSlider" name="slider_recVol"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>50</height> + </size> + </property> + <property name="layoutDirection"> + <enum>Qt::RightToLeft</enum> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="maximum"> + <number>100</number> + </property> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="invertedAppearance"> + <bool>false</bool> + </property> + <property name="invertedControls"> + <bool>false</bool> + </property> + <property name="tickPosition"> + <enum>QSlider::NoTicks</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="toolButton_recVol"> + <property name="text"> + <string>...</string> + </property> + <property name="icon"> + <iconset> + <normaloff>:/Images/mic_75.svg</normaloff>:/Images/mic_75.svg</iconset> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + <zorder>toolButton_recVol</zorder> + <zorder>slider_recVol</zorder> + </widget> + </item> + <item> + <widget class="QWidget" name="widget_dialpad" native="true"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="1"> + <widget class="QPushButton" name="pushButton_1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>1</string> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QPushButton" name="pushButton_2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>2</string> + </property> + <property name="shortcut"> + <string>2</string> + </property> + </widget> + </item> + <item row="0" column="3"> + <widget class="QPushButton" name="pushButton_3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>3</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QPushButton" name="pushButton_4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>4</string> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QPushButton" name="pushButton_5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>5</string> + </property> + </widget> + </item> + <item row="1" column="3"> + <widget class="QPushButton" name="pushButton_6"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>6</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QPushButton" name="pushButton_7"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>7</string> + </property> + </widget> + </item> + <item row="2" column="2"> + <widget class="QPushButton" name="pushButton_8"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>8</string> + </property> + </widget> + </item> + <item row="2" column="3"> + <widget class="QPushButton" name="pushButton_9"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>9</string> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QPushButton" name="pushButton_etoile"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>*</string> + </property> + </widget> + </item> + <item row="3" column="2"> + <widget class="QPushButton" name="pushButton_0"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>0</string> + </property> + </widget> + </item> + <item row="3" column="3"> + <widget class="QPushButton" name="pushButton_diese"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>#</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QWidget" name="widget_sndVol" native="true"> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <property name="spacing"> + <number>0</number> + </property> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="QSlider" name="slider_sndVol"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>50</height> + </size> + </property> + <property name="layoutDirection"> + <enum>Qt::LeftToRight</enum> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="maximum"> + <number>100</number> + </property> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="tickPosition"> + <enum>QSlider::NoTicks</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="toolButton_sndVol"> + <property name="text"> + <string>...</string> + </property> + <property name="icon"> + <iconset> + <normaloff>:/Images/speaker_75.svg</normaloff>:/Images/speaker_75.svg</iconset> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="checked"> + <bool>false</bool> + </property> + </widget> + </item> + </layout> + </widget> + </item> + </layout> + </widget> </item> </layout> - <action name="action_accept" > - <property name="icon" > - <iconset resource="resources.qrc" > + <action name="action_accept"> + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/call.svg</normaloff>:/images/icons/call.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>&Pick up</string> </property> </action> - <action name="action_refuse" > - <property name="icon" > - <iconset resource="resources.qrc" > + <action name="action_refuse"> + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/hang_up.svg</normaloff>:/images/icons/hang_up.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>&Hang up</string> </property> </action> - <action name="action_hold" > - <property name="icon" > - <iconset resource="resources.qrc" > + <action name="action_hold"> + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/hold.svg</normaloff>:/images/icons/hold.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>H&old</string> </property> </action> - <action name="action_transfer" > - <property name="checkable" > + <action name="action_transfer"> + <property name="checkable"> <bool>true</bool> </property> - <property name="icon" > - <iconset resource="resources.qrc" > + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/transfert.svg</normaloff>:/images/icons/transfert.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>&Transfer</string> </property> </action> - <action name="action_history" > - <property name="checkable" > + <action name="action_history"> + <property name="checkable"> <bool>true</bool> </property> - <property name="icon" > - <iconset resource="resources.qrc" > + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/history2.svg</normaloff>:/images/icons/history2.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>H&istory</string> </property> </action> - <action name="action_mailBox" > - <property name="icon" > - <iconset resource="resources.qrc" > + <action name="action_mailBox"> + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/mailbox.svg</normaloff>:/images/icons/mailbox.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>&Mailbox</string> </property> </action> - <action name="action_configureAccounts" > - <property name="icon" > - <iconset resource="resources.qrc" > + <action name="action_configureAccounts"> + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/stock_person.svg</normaloff>:/images/icons/stock_person.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>Configure &accounts</string> </property> </action> - <action name="action_configureAudio" > - <property name="icon" > - <iconset resource="resources.qrc" > + <action name="action_configureAudio"> + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/icon_volume.svg</normaloff>:/images/icons/icon_volume.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>Configure a&udio</string> </property> </action> - <action name="action_configureSflPhone" > - <property name="icon" > - <iconset resource="resources.qrc" > + <action name="action_configureSflPhone"> + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/sflphone.png</normaloff>:/images/icons/sflphone.png</iconset> </property> - <property name="text" > + <property name="text"> <string>&Configure SFLPhone</string> </property> </action> - <action name="action_displayVolumeControls" > - <property name="checkable" > + <action name="action_displayVolumeControls"> + <property name="checkable"> <bool>true</bool> </property> - <property name="checked" > + <property name="checked"> <bool>true</bool> </property> - <property name="icon" > - <iconset resource="resources.qrc" > + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/icon_volume_off.svg</normaloff>:/images/icons/icon_volume_off.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>Display &volume bars</string> </property> </action> - <action name="action_About" > - <property name="text" > + <action name="action_About"> + <property name="text"> <string>&About</string> </property> </action> - <action name="action_displayDialpad" > - <property name="checkable" > + <action name="action_displayDialpad"> + <property name="checkable"> <bool>true</bool> </property> - <property name="checked" > + <property name="checked"> <bool>true</bool> </property> - <property name="icon" > - <iconset resource="resources.qrc" > + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/icon_dialpad.svg</normaloff>:/images/icons/icon_dialpad.svg</iconset> </property> - <property name="text" > + <property name="text"> <string>Display &dialpad</string> </property> </action> - <action name="action_record" > - <property name="checkable" > + <action name="action_record"> + <property name="checkable"> <bool>true</bool> </property> - <property name="icon" > - <iconset resource="resources.qrc" > + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/del_off.png</normaloff>:/images/icons/del_off.png</iconset> </property> - <property name="text" > + <property name="text"> <string>&Record</string> </property> </action> - <action name="action_accountCreationWizard" > - <property name="text" > + <action name="action_accountCreationWizard"> + <property name="text"> <string>Account creation &wizard</string> </property> </action> - <action name="action_addressBook" > - <property name="checkable" > + <action name="action_addressBook"> + <property name="checkable"> <bool>true</bool> </property> - <property name="icon" > - <iconset resource="resources.qrc" > + <property name="icon"> + <iconset resource="resources.qrc"> <normaloff>:/images/icons/x-office-address-book.png</normaloff>:/images/icons/x-office-address-book.png</iconset> </property> - <property name="text" > + <property name="text"> <string>Address book</string> </property> </action> </widget> <resources> - <include location="resources.qrc" /> + <include location="resources.qrc"/> </resources> <connections/> </ui>