[#1886] changed Name of classes and files

This commit is contained in:
Jérémy Quentin
2009-07-21 17:31:18 -04:00
parent 9d11dc3122
commit 128bb4fce6
10 changed files with 108 additions and 124 deletions

View File

@ -1,5 +1,4 @@
ADD_DEFINITIONS( ADD_DEFINITIONS(
${KDE4_DEFINITIONS} ${KDE4_DEFINITIONS}
${QT_DEFINITIONS} ${QT_DEFINITIONS}
@ -8,16 +7,6 @@ ADD_DEFINITIONS(
-DSHARE_INSTALL_PREFIX="\\\"${SHARE_INSTALL_PREFIX}\\\"" -DSHARE_INSTALL_PREFIX="\\\"${SHARE_INSTALL_PREFIX}\\\""
) )
# add_definitions ( -DKDE_DEFAULT_DEBUG_AREA=9000 )
# kde4_set_debug_area( 1234 )
# IF(DEFINED DEBUG_DISABLED)
# MESSAGE("NO DEBUG OUTPUT")
# ADD_DEFINITIONS( -DQT_NO_DEBUG_OUTPUT )
# ENDIF(DEFINED DEBUG_DISABLED)
MESSAGE("CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}") MESSAGE("CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}")
IF(${CMAKE_BUILD_TYPE} MATCHES Release) IF(${CMAKE_BUILD_TYPE} MATCHES Release)
@ -28,7 +17,7 @@ ENDIF(${CMAKE_BUILD_TYPE} MATCHES Release)
SET ( KDE4_KABC_LIBS -lkabc ) SET ( KDE4_KABC_LIBS -lkabc )
SET( sflphone_client_kde_SRCS SET( sflphone_client_kde_SRCS
sflphone_kdeview.cpp SFLPhoneView.cpp
SFLPhone.cpp SFLPhone.cpp
main.cpp main.cpp
sflphone_const.h sflphone_const.h
@ -124,12 +113,11 @@ SET( config_ui_files
conf/dlghooksbase.ui conf/dlghooksbase.ui
) )
KDE4_ADD_UI_FILES(sflphone_client_kde_SRCS ui/sflphone_kdeview_base.ui ${config_ui_files} ) KDE4_ADD_UI_FILES(sflphone_client_kde_SRCS ui/SFLPhoneView_base.ui ${config_ui_files} )
KDE4_ADD_KCFG_FILES(sflphone_client_kde_SRCS conf/kcfg_settings.kcfgc) KDE4_ADD_KCFG_FILES(sflphone_client_kde_SRCS conf/kcfg_settings.kcfgc)
INSTALL(FILES conf/sflphone-client-kde.kcfg DESTINATION ${KCFG_INSTALL_DIR}) INSTALL(FILES conf/sflphone-client-kde.kcfg DESTINATION ${KCFG_INSTALL_DIR})
KDE4_ADD_EXECUTABLE(sflphone-client-kde ${sflphone_client_kde_SRCS} ${QtApp_RCC_SRCS}) KDE4_ADD_EXECUTABLE(sflphone-client-kde ${sflphone_client_kde_SRCS} ${QtApp_RCC_SRCS})
TARGET_LINK_LIBRARIES(sflphone-client-kde ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KABC_LIBS}) TARGET_LINK_LIBRARIES(sflphone-client-kde ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KABC_LIBS})

View File

@ -580,7 +580,7 @@ void Call::call()
if(account.isEmpty()) if(account.isEmpty())
{ {
qDebug() << "account is not set, taking the first registered."; qDebug() << "account is not set, taking the first registered.";
this->account = sflphone_kdeView::accountInUseId(); this->account = SFLPhoneView::accountInUseId();
} }
if(!account.isEmpty()) if(!account.isEmpty())
{ {

View File

@ -39,7 +39,7 @@
SFLPhone::SFLPhone(QWidget *parent) SFLPhone::SFLPhone(QWidget *parent)
: KXmlGuiWindow(parent), : KXmlGuiWindow(parent),
view(new sflphone_kdeView(this)) view(new SFLPhoneView(this))
{ {
ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
@ -177,7 +177,7 @@ void SFLPhone::setupActions()
} }
sflphone_kdeView * SFLPhone::getView() SFLPhoneView * SFLPhone::getView()
{ {
return view; return view;
} }

View File

@ -33,14 +33,14 @@
#include <KAction> #include <KAction>
#include <QActionGroup> #include <QActionGroup>
#include "ui_sflphone_kdeview_base.h" // #include "ui_SFLPhoneView_base.h"
#include "CallList.h" #include "CallList.h"
#include "AccountWizard.h" #include "AccountWizard.h"
#include "Contact.h" #include "Contact.h"
#include "sflphone_kdeview.h" #include "SFLPhoneView.h"
class SFLPhoneView;
class sflphone_kdeView;
/** /**
* This class represents the SFLphone main window * This class represents the SFLphone main window
* It implements the methods relative to windowing * It implements the methods relative to windowing
@ -87,7 +87,7 @@ private:
KAction * action_configureSflPhone; KAction * action_configureSflPhone;
KAction * action_accountCreationWizard; KAction * action_accountCreationWizard;
sflphone_kdeView * view; SFLPhoneView * view;
QMenu *trayIconMenu; QMenu *trayIconMenu;
bool iconChanged; bool iconChanged;
QSystemTrayIcon *trayIcon; QSystemTrayIcon *trayIcon;
@ -108,7 +108,7 @@ public:
void sendNotif(QString caller); void sendNotif(QString caller);
void putForeground(); void putForeground();
void trayIconSignal(); void trayIconSignal();
sflphone_kdeView * getView(); SFLPhoneView * getView();
QList<QAction *> getCallActions(); QList<QAction *> getCallActions();

View File

@ -19,7 +19,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/ ***************************************************************************/
#include "sflphone_kdeview.h" #include "SFLPhoneView.h"
#include <klocale.h> #include <klocale.h>
#include <QtGui/QLabel> #include <QtGui/QLabel>
@ -50,11 +50,11 @@
using namespace KABC; using namespace KABC;
ConfigurationDialogKDE * sflphone_kdeView::configDialog; ConfigurationDialog * SFLPhoneView::configDialog;
AccountList * sflphone_kdeView::accountList; AccountList * SFLPhoneView::accountList;
QString sflphone_kdeView::priorAccountId; QString SFLPhoneView::priorAccountId;
sflphone_kdeView::sflphone_kdeView(QWidget *parent) SFLPhoneView::SFLPhoneView(QWidget *parent)
: QWidget(parent) : QWidget(parent)
{ {
setupUi(this); setupUi(this);
@ -80,7 +80,7 @@ sflphone_kdeView::sflphone_kdeView(QWidget *parent)
accountList = new AccountList(false); accountList = new AccountList(false);
configDialog = new ConfigurationDialogKDE(this); configDialog = new ConfigurationDialog(this);
configDialog->setObjectName("configDialog"); configDialog->setObjectName("configDialog");
configDialog->setModal(true); configDialog->setModal(true);
@ -124,11 +124,11 @@ sflphone_kdeView::sflphone_kdeView(QWidget *parent)
sflphone_kdeView::~sflphone_kdeView() SFLPhoneView::~SFLPhoneView()
{ {
} }
void sflphone_kdeView::loadWindow() void SFLPhoneView::loadWindow()
{ {
qDebug() << "loadWindow"; qDebug() << "loadWindow";
updateWindowCallState(); updateWindowCallState();
@ -144,7 +144,7 @@ void sflphone_kdeView::loadWindow()
updateStatusMessage(); updateStatusMessage();
} }
Account * sflphone_kdeView::accountInUse() Account * SFLPhoneView::accountInUse()
{ {
Account * priorAccount = accountList->getAccountById(priorAccountId); Account * priorAccount = accountList->getAccountById(priorAccountId);
if(priorAccount && priorAccount->getAccountDetail(ACCOUNT_STATUS) == ACCOUNT_STATE_REGISTERED ) if(priorAccount && priorAccount->getAccountDetail(ACCOUNT_STATUS) == ACCOUNT_STATE_REGISTERED )
@ -157,7 +157,7 @@ Account * sflphone_kdeView::accountInUse()
} }
} }
QString sflphone_kdeView::accountInUseId() QString SFLPhoneView::accountInUseId()
{ {
Account * firstRegistered = accountInUse(); Account * firstRegistered = accountInUse();
if(firstRegistered == NULL) if(firstRegistered == NULL)
@ -170,17 +170,17 @@ QString sflphone_kdeView::accountInUseId()
} }
} }
AccountList * sflphone_kdeView::getAccountList() AccountList * SFLPhoneView::getAccountList()
{ {
return accountList; return accountList;
} }
QErrorMessage * sflphone_kdeView::getErrorWindow() QErrorMessage * SFLPhoneView::getErrorWindow()
{ {
return errorWindow; return errorWindow;
} }
void sflphone_kdeView::addCallToCallList(Call * call) void SFLPhoneView::addCallToCallList(Call * call)
{ {
QListWidgetItem * item = call->getItem(); QListWidgetItem * item = call->getItem();
QWidget * widget = call->getItemWidget(); QWidget * widget = call->getItemWidget();
@ -191,7 +191,7 @@ void sflphone_kdeView::addCallToCallList(Call * call)
} }
} }
void sflphone_kdeView::addCallToCallHistory(Call * call) void SFLPhoneView::addCallToCallHistory(Call * call)
{ {
QListWidgetItem * item = call->getHistoryItem(); QListWidgetItem * item = call->getHistoryItem();
QWidget * widget = call->getHistoryItemWidget(); QWidget * widget = call->getHistoryItemWidget();
@ -202,7 +202,7 @@ void sflphone_kdeView::addCallToCallHistory(Call * call)
} }
} }
void sflphone_kdeView::addContactToContactList(Contact * contact) void SFLPhoneView::addContactToContactList(Contact * contact)
{ {
QListWidgetItem * item = contact->getItem(); QListWidgetItem * item = contact->getItem();
QWidget * widget = contact->getItemWidget(); QWidget * widget = contact->getItemWidget();
@ -213,7 +213,7 @@ void sflphone_kdeView::addContactToContactList(Contact * contact)
} }
} }
void sflphone_kdeView::typeString(QString str) void SFLPhoneView::typeString(QString str)
{ {
qDebug() << "typeString"; qDebug() << "typeString";
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
@ -245,7 +245,7 @@ void sflphone_kdeView::typeString(QString str)
} }
} }
void sflphone_kdeView::backspace() void SFLPhoneView::backspace()
{ {
qDebug() << "backspace"; qDebug() << "backspace";
if(stackedWidget_screen->currentWidget() == page_callList) if(stackedWidget_screen->currentWidget() == page_callList)
@ -272,7 +272,7 @@ void sflphone_kdeView::backspace()
} }
} }
void sflphone_kdeView::escape() void SFLPhoneView::escape()
{ {
qDebug() << "escape"; qDebug() << "escape";
if(stackedWidget_screen->currentWidget() == page_callList ) if(stackedWidget_screen->currentWidget() == page_callList )
@ -316,7 +316,7 @@ void sflphone_kdeView::escape()
} }
} }
void sflphone_kdeView::enter() void SFLPhoneView::enter()
{ {
qDebug() << "enter"; qDebug() << "enter";
if(stackedWidget_screen->currentWidget() == page_callList ) if(stackedWidget_screen->currentWidget() == page_callList )
@ -393,7 +393,7 @@ void sflphone_kdeView::enter()
} }
} }
void sflphone_kdeView::action(Call * call, call_action action) void SFLPhoneView::action(Call * call, call_action action)
{ {
if(! call) if(! call)
{ {
@ -419,7 +419,7 @@ void sflphone_kdeView::action(Call * call, call_action action)
******** Update Display Functions ********** ******** Update Display Functions **********
*******************************************/ *******************************************/
void sflphone_kdeView::updateCallItem(Call * call) void SFLPhoneView::updateCallItem(Call * call)
{ {
call_state state = call->getState(); call_state state = call->getState();
if(state == CALL_STATE_OVER) if(state == CALL_STATE_OVER)
@ -431,7 +431,7 @@ void sflphone_kdeView::updateCallItem(Call * call)
} }
void sflphone_kdeView::updateWindowCallState() void SFLPhoneView::updateWindowCallState()
{ {
qDebug() << "updateWindowCallState"; qDebug() << "updateWindowCallState";
@ -589,14 +589,14 @@ void sflphone_kdeView::updateWindowCallState()
qDebug() << "Window updated."; qDebug() << "Window updated.";
} }
void sflphone_kdeView::updateSearchHistory() void SFLPhoneView::updateSearchHistory()
{ {
qDebug() << "updateSearchHistory"; qDebug() << "updateSearchHistory";
lineEdit_searchHistory->setVisible(!lineEdit_searchHistory->text().isEmpty()); lineEdit_searchHistory->setVisible(!lineEdit_searchHistory->text().isEmpty());
} }
void sflphone_kdeView::updateCallHistory() void SFLPhoneView::updateCallHistory()
{ {
qDebug() << "updateCallHistory"; qDebug() << "updateCallHistory";
while(listWidget_callHistory->count() > 0) while(listWidget_callHistory->count() > 0)
@ -622,7 +622,7 @@ void sflphone_kdeView::updateCallHistory()
alternateColors(listWidget_callHistory); alternateColors(listWidget_callHistory);
} }
void sflphone_kdeView::updateAddressBook() void SFLPhoneView::updateAddressBook()
{ {
qDebug() << "updateAddressBook"; qDebug() << "updateAddressBook";
while(listWidget_addressBook->count() > 0) while(listWidget_addressBook->count() > 0)
@ -662,7 +662,7 @@ void sflphone_kdeView::updateAddressBook()
} }
void sflphone_kdeView::alternateColors(QListWidget * listWidget) void SFLPhoneView::alternateColors(QListWidget * listWidget)
{ {
qDebug() << "alternateColors"; qDebug() << "alternateColors";
for(int i = 0 ; i < listWidget->count(); i++) for(int i = 0 ; i < listWidget->count(); i++)
@ -675,7 +675,7 @@ void sflphone_kdeView::alternateColors(QListWidget * listWidget)
} }
QVector<Contact *> sflphone_kdeView::findContactsInKAddressBook(QString textSearched, bool & full) QVector<Contact *> SFLPhoneView::findContactsInKAddressBook(QString textSearched, bool & full)
{ {
ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
MapStringInt addressBookSettings = configurationManager.getAddressbookSettings().value(); MapStringInt addressBookSettings = configurationManager.getAddressbookSettings().value();
@ -709,7 +709,7 @@ QVector<Contact *> sflphone_kdeView::findContactsInKAddressBook(QString textSear
} }
int sflphone_kdeView::phoneNumberTypesDisplayed() int SFLPhoneView::phoneNumberTypesDisplayed()
{ {
ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
MapStringInt addressBookSettings = configurationManager.getAddressbookSettings().value(); MapStringInt addressBookSettings = configurationManager.getAddressbookSettings().value();
@ -729,7 +729,7 @@ int sflphone_kdeView::phoneNumberTypesDisplayed()
return typesDisplayed; return typesDisplayed;
} }
void sflphone_kdeView::updateRecordButton() void SFLPhoneView::updateRecordButton()
{ {
qDebug() << "updateRecordButton"; qDebug() << "updateRecordButton";
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
@ -760,7 +760,7 @@ void sflphone_kdeView::updateRecordButton()
toolButton_recVolAlone->setChecked(false); toolButton_recVolAlone->setChecked(false);
} }
} }
void sflphone_kdeView::updateVolumeButton() void SFLPhoneView::updateVolumeButton()
{ {
qDebug() << "updateVolumeButton"; qDebug() << "updateVolumeButton";
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
@ -793,7 +793,7 @@ void sflphone_kdeView::updateVolumeButton()
} }
void sflphone_kdeView::updateRecordBar() void SFLPhoneView::updateRecordBar()
{ {
qDebug() << "updateRecordBar"; qDebug() << "updateRecordBar";
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
@ -802,7 +802,7 @@ void sflphone_kdeView::updateRecordBar()
slider_recVol->setValue(value); slider_recVol->setValue(value);
slider_recVolAlone->setValue(value); slider_recVolAlone->setValue(value);
} }
void sflphone_kdeView::updateVolumeBar() void SFLPhoneView::updateVolumeBar()
{ {
qDebug() << "updateVolumeBar"; qDebug() << "updateVolumeBar";
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
@ -812,7 +812,7 @@ void sflphone_kdeView::updateVolumeBar()
slider_sndVolAlone->setValue(value); slider_sndVolAlone->setValue(value);
} }
void sflphone_kdeView::updateVolumeControls() void SFLPhoneView::updateVolumeControls()
{ {
qDebug() << "updateVolumeControls"; qDebug() << "updateVolumeControls";
ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
@ -824,7 +824,7 @@ void sflphone_kdeView::updateVolumeControls()
widget_sndVolAlone->setVisible(display && ! displayDialpad); widget_sndVolAlone->setVisible(display && ! displayDialpad);
} }
void sflphone_kdeView::updateDialpad() void SFLPhoneView::updateDialpad()
{ {
qDebug() << "updateDialpad"; qDebug() << "updateDialpad";
ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
@ -833,7 +833,7 @@ void sflphone_kdeView::updateDialpad()
} }
void sflphone_kdeView::updateStatusMessage() void SFLPhoneView::updateStatusMessage()
{ {
qDebug() << "updateStatusMessage"; qDebug() << "updateStatusMessage";
Account * account = accountInUse(); Account * account = accountInUse();
@ -853,14 +853,14 @@ void sflphone_kdeView::updateStatusMessage()
************ Autoconnect ************* ************ Autoconnect *************
************************************************************/ ************************************************************/
void sflphone_kdeView::displayVolumeControls() void SFLPhoneView::displayVolumeControls()
{ {
ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
configurationManager.setVolumeControls(); configurationManager.setVolumeControls();
updateVolumeControls(); updateVolumeControls();
} }
void sflphone_kdeView::displayDialpad() void SFLPhoneView::displayDialpad()
{ {
ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
configurationManager.setDialpad(); configurationManager.setDialpad();
@ -869,10 +869,10 @@ void sflphone_kdeView::displayDialpad()
} }
void sflphone_kdeView::on_widget_dialpad_typed(QString text) { typeString(text); } void SFLPhoneView::on_widget_dialpad_typed(QString text) { typeString(text); }
void sflphone_kdeView::on_lineEdit_searchHistory_textChanged() void SFLPhoneView::on_lineEdit_searchHistory_textChanged()
{ {
qDebug() << "on_lineEdit_searchHistory_textChanged"; qDebug() << "on_lineEdit_searchHistory_textChanged";
updateSearchHistory(); updateSearchHistory();
@ -880,14 +880,14 @@ void sflphone_kdeView::on_lineEdit_searchHistory_textChanged()
updateWindowCallState(); updateWindowCallState();
} }
void sflphone_kdeView::on_lineEdit_addressBook_textChanged() void SFLPhoneView::on_lineEdit_addressBook_textChanged()
{ {
qDebug() << "on_lineEdit_addressBook_textChanged"; qDebug() << "on_lineEdit_addressBook_textChanged";
updateAddressBook(); updateAddressBook();
updateWindowCallState(); updateWindowCallState();
} }
void sflphone_kdeView::on_slider_recVol_valueChanged(int value) void SFLPhoneView::on_slider_recVol_valueChanged(int value)
{ {
qDebug() << "on_slider_recVol_valueChanged(" << value << ")"; qDebug() << "on_slider_recVol_valueChanged(" << value << ")";
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
@ -895,7 +895,7 @@ void sflphone_kdeView::on_slider_recVol_valueChanged(int value)
updateRecordButton(); updateRecordButton();
} }
void sflphone_kdeView::on_slider_sndVol_valueChanged(int value) void SFLPhoneView::on_slider_sndVol_valueChanged(int value)
{ {
qDebug() << "on_slider_sndVol_valueChanged(" << value << ")"; qDebug() << "on_slider_sndVol_valueChanged(" << value << ")";
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
@ -904,7 +904,7 @@ void sflphone_kdeView::on_slider_sndVol_valueChanged(int value)
} }
void sflphone_kdeView::on_toolButton_recVol_clicked(bool checked) void SFLPhoneView::on_toolButton_recVol_clicked(bool checked)
{ {
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
qDebug() << "on_toolButton_recVol_clicked()."; qDebug() << "on_toolButton_recVol_clicked().";
@ -931,7 +931,7 @@ void sflphone_kdeView::on_toolButton_recVol_clicked(bool checked)
} }
void sflphone_kdeView::on_toolButton_sndVol_clicked(bool checked) void SFLPhoneView::on_toolButton_sndVol_clicked(bool checked)
{ {
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
qDebug() << "on_toolButton_sndVol_clicked()."; qDebug() << "on_toolButton_sndVol_clicked().";
@ -957,19 +957,19 @@ void sflphone_kdeView::on_toolButton_sndVol_clicked(bool checked)
} }
void sflphone_kdeView::on_listWidget_callList_currentItemChanged() void SFLPhoneView::on_listWidget_callList_currentItemChanged()
{ {
qDebug() << "on_listWidget_callList_currentItemChanged"; qDebug() << "on_listWidget_callList_currentItemChanged";
updateWindowCallState(); updateWindowCallState();
} }
void sflphone_kdeView::on_listWidget_callList_itemChanged() void SFLPhoneView::on_listWidget_callList_itemChanged()
{ {
qDebug() << "on_listWidget_callList_itemChanged"; qDebug() << "on_listWidget_callList_itemChanged";
stackedWidget_screen->setCurrentWidget(page_callList); stackedWidget_screen->setCurrentWidget(page_callList);
} }
void sflphone_kdeView::on_listWidget_callList_itemDoubleClicked(QListWidgetItem * item) void SFLPhoneView::on_listWidget_callList_itemDoubleClicked(QListWidgetItem * item)
{ {
qDebug() << "on_listWidget_callList_itemDoubleClicked"; qDebug() << "on_listWidget_callList_itemDoubleClicked";
Call * call = callList->findCallByItem(item); Call * call = callList->findCallByItem(item);
@ -987,7 +987,7 @@ void sflphone_kdeView::on_listWidget_callList_itemDoubleClicked(QListWidgetItem
} }
} }
void sflphone_kdeView::on_listWidget_callHistory_itemDoubleClicked(QListWidgetItem * item) void SFLPhoneView::on_listWidget_callHistory_itemDoubleClicked(QListWidgetItem * item)
{ {
qDebug() << "on_listWidget_callHistory_itemDoubleClicked"; qDebug() << "on_listWidget_callHistory_itemDoubleClicked";
changeScreen(SCREEN_MAIN); changeScreen(SCREEN_MAIN);
@ -1000,7 +1000,7 @@ void sflphone_kdeView::on_listWidget_callHistory_itemDoubleClicked(QListWidgetIt
} }
void sflphone_kdeView::on_listWidget_addressBook_itemDoubleClicked(QListWidgetItem * item) void SFLPhoneView::on_listWidget_addressBook_itemDoubleClicked(QListWidgetItem * item)
{ {
qDebug() << "on_listWidget_addressBook_itemDoubleClicked"; qDebug() << "on_listWidget_addressBook_itemDoubleClicked";
changeScreen(SCREEN_MAIN); changeScreen(SCREEN_MAIN);
@ -1012,7 +1012,7 @@ void sflphone_kdeView::on_listWidget_addressBook_itemDoubleClicked(QListWidgetIt
action(call, CALL_ACTION_ACCEPT); action(call, CALL_ACTION_ACCEPT);
} }
void sflphone_kdeView::on_stackedWidget_screen_currentChanged(int index) void SFLPhoneView::on_stackedWidget_screen_currentChanged(int index)
{ {
qDebug() << "on_stackedWidget_screen_currentChanged"; qDebug() << "on_stackedWidget_screen_currentChanged";
switch(index) switch(index)
@ -1037,7 +1037,7 @@ void sflphone_kdeView::on_stackedWidget_screen_currentChanged(int index)
} }
} }
void sflphone_kdeView::contextMenuEvent(QContextMenuEvent *event) void SFLPhoneView::contextMenuEvent(QContextMenuEvent *event)
{ {
QMenu menu(this); QMenu menu(this);
if(stackedWidget_screen->currentWidget() == page_callHistory || stackedWidget_screen->currentWidget() == page_addressBook) if(stackedWidget_screen->currentWidget() == page_callHistory || stackedWidget_screen->currentWidget() == page_addressBook)
@ -1076,7 +1076,7 @@ void sflphone_kdeView::contextMenuEvent(QContextMenuEvent *event)
menu.exec(event->globalPos()); menu.exec(event->globalPos());
} }
void sflphone_kdeView::editBeforeCall() void SFLPhoneView::editBeforeCall()
{ {
qDebug() << "editBeforeCall"; qDebug() << "editBeforeCall";
QString name; QString name;
@ -1119,7 +1119,7 @@ void sflphone_kdeView::editBeforeCall()
} }
} }
void sflphone_kdeView::setAccountFirst(Account * account) void SFLPhoneView::setAccountFirst(Account * account)
{ {
qDebug() << "setAccountFirst : " << (account ? account->getAlias() : QString()); qDebug() << "setAccountFirst : " << (account ? account->getAlias() : QString());
if(account) if(account)
@ -1133,32 +1133,32 @@ void sflphone_kdeView::setAccountFirst(Account * account)
updateStatusMessage(); updateStatusMessage();
} }
void sflphone_kdeView::on_listWidget_callHistory_currentItemChanged() void SFLPhoneView::on_listWidget_callHistory_currentItemChanged()
{ {
qDebug() << "on_listWidget_callHistory_currentItemChanged"; qDebug() << "on_listWidget_callHistory_currentItemChanged";
updateWindowCallState(); updateWindowCallState();
} }
void sflphone_kdeView::on_listWidget_addressBook_currentItemChanged() void SFLPhoneView::on_listWidget_addressBook_currentItemChanged()
{ {
qDebug() << "on_listWidget_addressBook_currentItemChanged"; qDebug() << "on_listWidget_addressBook_currentItemChanged";
updateWindowCallState(); updateWindowCallState();
} }
void sflphone_kdeView::configureSflPhone() void SFLPhoneView::configureSflPhone()
{ {
configDialog->reload(); configDialog->reload();
configDialog->show(); configDialog->show();
} }
void sflphone_kdeView::accountCreationWizard() void SFLPhoneView::accountCreationWizard()
{ {
wizard->show(); wizard->show();
} }
void sflphone_kdeView::accept() void SFLPhoneView::accept()
{ {
if(stackedWidget_screen->currentWidget() == page_callList) if(stackedWidget_screen->currentWidget() == page_callList)
{ {
@ -1216,7 +1216,7 @@ void sflphone_kdeView::accept()
} }
} }
void sflphone_kdeView::refuse() void SFLPhoneView::refuse()
{ {
if(stackedWidget_screen->currentWidget() == page_callList) if(stackedWidget_screen->currentWidget() == page_callList)
{ {
@ -1240,7 +1240,7 @@ void sflphone_kdeView::refuse()
} }
} }
void sflphone_kdeView::hold() void SFLPhoneView::hold()
{ {
QListWidgetItem * item = listWidget_callList->currentItem(); QListWidgetItem * item = listWidget_callList->currentItem();
if(!item) if(!item)
@ -1253,7 +1253,7 @@ void sflphone_kdeView::hold()
} }
} }
void sflphone_kdeView::transfer() void SFLPhoneView::transfer()
{ {
QListWidgetItem * item = listWidget_callList->currentItem(); QListWidgetItem * item = listWidget_callList->currentItem();
if(!item) if(!item)
@ -1266,7 +1266,7 @@ void sflphone_kdeView::transfer()
} }
} }
void sflphone_kdeView::record() void SFLPhoneView::record()
{ {
QListWidgetItem * item = listWidget_callList->currentItem(); QListWidgetItem * item = listWidget_callList->currentItem();
if(!item) if(!item)
@ -1279,7 +1279,7 @@ void sflphone_kdeView::record()
} }
} }
void sflphone_kdeView::mailBox() void SFLPhoneView::mailBox()
{ {
Account * account = accountInUse(); Account * account = accountInUse();
QString mailBoxNumber = account->getAccountDetail(ACCOUNT_MAILBOX); QString mailBoxNumber = account->getAccountDetail(ACCOUNT_MAILBOX);
@ -1290,7 +1290,7 @@ void sflphone_kdeView::mailBox()
action(call, CALL_ACTION_ACCEPT); action(call, CALL_ACTION_ACCEPT);
} }
void sflphone_kdeView::on1_callStateChanged(const QString &callID, const QString &state) void SFLPhoneView::on1_callStateChanged(const QString &callID, const QString &state)
{ {
qDebug() << "Signal : Call State Changed for call " << callID << " . New state : " << state; qDebug() << "Signal : Call State Changed for call " << callID << " . New state : " << state;
Call * call = callList->findCallByCallId(callID); Call * call = callList->findCallByCallId(callID);
@ -1315,12 +1315,12 @@ void sflphone_kdeView::on1_callStateChanged(const QString &callID, const QString
updateWindowCallState(); updateWindowCallState();
} }
void sflphone_kdeView::on1_error(MapStringString details) void SFLPhoneView::on1_error(MapStringString details)
{ {
qDebug() << "Signal : Daemon error : " << details; qDebug() << "Signal : Daemon error : " << details;
} }
void sflphone_kdeView::on1_incomingCall(const QString & /*accountID*/, const QString & callID) void SFLPhoneView::on1_incomingCall(const QString & /*accountID*/, const QString & callID)
{ {
qDebug() << "Signal : Incoming Call ! ID = " << callID; qDebug() << "Signal : Incoming Call ! ID = " << callID;
Call * call = callList->addIncomingCall(callID); Call * call = callList->addIncomingCall(callID);
@ -1329,17 +1329,17 @@ void sflphone_kdeView::on1_incomingCall(const QString & /*accountID*/, const QSt
emit incomingCall(call); emit incomingCall(call);
} }
void sflphone_kdeView::on1_incomingMessage(const QString &accountID, const QString &message) void SFLPhoneView::on1_incomingMessage(const QString &accountID, const QString &message)
{ {
qDebug() << "Signal : Incoming Message for account " << accountID << " ! \nMessage : " << message; qDebug() << "Signal : Incoming Message for account " << accountID << " ! \nMessage : " << message;
} }
void sflphone_kdeView::on1_voiceMailNotify(const QString &accountID, int count) void SFLPhoneView::on1_voiceMailNotify(const QString &accountID, int count)
{ {
qDebug() << "Signal : VoiceMail Notify ! " << count << " new voice mails for account " << accountID; qDebug() << "Signal : VoiceMail Notify ! " << count << " new voice mails for account " << accountID;
} }
void sflphone_kdeView::on1_volumeChanged(const QString & /*device*/, double value) void SFLPhoneView::on1_volumeChanged(const QString & /*device*/, double value)
{ {
qDebug() << "Signal : Volume Changed !"; qDebug() << "Signal : Volume Changed !";
if(! (toolButton_recVol->isChecked() && value == 0.0)) if(! (toolButton_recVol->isChecked() && value == 0.0))
@ -1348,7 +1348,7 @@ void sflphone_kdeView::on1_volumeChanged(const QString & /*device*/, double valu
updateVolumeBar(); updateVolumeBar();
} }
void sflphone_kdeView::enableAddressBook() void SFLPhoneView::enableAddressBook()
{ {
qDebug() << "\nenableAddressBook\n"; qDebug() << "\nenableAddressBook\n";
lineEdit_addressBook->clear(); lineEdit_addressBook->clear();
@ -1358,7 +1358,7 @@ void sflphone_kdeView::enableAddressBook()
this, SLOT(enableAddressBook())); this, SLOT(enableAddressBook()));
} }
bool sflphone_kdeView::loadAddressBook() bool SFLPhoneView::loadAddressBook()
{ {
qDebug() << "loadAddressBook"; qDebug() << "loadAddressBook";
AddressBook * ab = StdAddressBook::self(true); AddressBook * ab = StdAddressBook::self(true);
@ -1375,7 +1375,7 @@ bool sflphone_kdeView::loadAddressBook()
} }
void sflphone_kdeView::updateAddressBookEnabled() void SFLPhoneView::updateAddressBookEnabled()
{ {
emit addressBookEnableAsked(isAddressBookEnabled()); emit addressBookEnableAsked(isAddressBookEnabled());
if(! isAddressBookEnabled() && stackedWidget_screen->currentWidget() == page_addressBook) if(! isAddressBookEnabled() && stackedWidget_screen->currentWidget() == page_addressBook)
@ -1385,14 +1385,14 @@ void sflphone_kdeView::updateAddressBookEnabled()
} }
bool sflphone_kdeView::isAddressBookEnabled() bool SFLPhoneView::isAddressBookEnabled()
{ {
ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
MapStringInt addressBookSettings = configurationManager.getAddressbookSettings().value(); MapStringInt addressBookSettings = configurationManager.getAddressbookSettings().value();
return addressBookSettings[ADDRESSBOOK_ENABLE]; return addressBookSettings[ADDRESSBOOK_ENABLE];
} }
void sflphone_kdeView::changeScreen(int screen) void SFLPhoneView::changeScreen(int screen)
{ {
switch(screen) switch(screen)
{ {
@ -1412,4 +1412,4 @@ void sflphone_kdeView::changeScreen(int screen)
emit screenChanged(screen); emit screenChanged(screen);
} }
#include "sflphone_kdeview.moc" #include "SFLPhoneView.moc"

View File

@ -19,8 +19,8 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/ ***************************************************************************/
#ifndef sflphone_kdeVIEW_H #ifndef SFLPHONEVIEW_H
#define sflphone_kdeVIEW_H #define SFLPHONEVIEW_H
#include <QtGui/QWidget> #include <QtGui/QWidget>
#include <QtCore/QString> #include <QtCore/QString>
@ -31,17 +31,14 @@
#include <QErrorMessage> #include <QErrorMessage>
#include <KXmlGuiWindow> #include <KXmlGuiWindow>
#include "ui_sflphone_kdeview_base.h" #include "ui_SFLPhoneView_base.h"
#include "conf/ConfigurationDialog.h" #include "conf/ConfigurationDialog.h"
#include "CallList.h" #include "CallList.h"
#include "AccountWizard.h" #include "AccountWizard.h"
#include "Contact.h" #include "Contact.h"
#include "sflphone_kdeview.h"
#include "AccountList.h" #include "AccountList.h"
#include "ui_sflphone_kdeview_base.h" class ConfigurationDialog;
class ConfigurationDialogKDE;
/** /**
@ -56,13 +53,13 @@ class ConfigurationDialogKDE;
* @author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com> * @author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
* @version 0.9.6 * @version 0.9.6
*/ */
class sflphone_kdeView : public QWidget, public Ui::SFLPhone_view class SFLPhoneView : public QWidget, public Ui::SFLPhone_view
{ {
Q_OBJECT Q_OBJECT
private: private:
static ConfigurationDialogKDE * configDialog; static ConfigurationDialog * configDialog;
static AccountList * accountList; static AccountList * accountList;
AccountWizard * wizard; AccountWizard * wizard;
//List of calls in the window, and past ones. //List of calls in the window, and past ones.
@ -91,8 +88,8 @@ public:
* expected signals. * expected signals.
* @param parent * @param parent
*/ */
sflphone_kdeView(QWidget *parent); SFLPhoneView(QWidget *parent);
virtual ~sflphone_kdeView(); virtual ~SFLPhoneView();
//Getters //Getters
/** /**
@ -346,4 +343,4 @@ signals:
}; };
#endif // sflphone_kdeVIEW_H #endif // SFLPHONEVIEW_H

View File

@ -32,7 +32,7 @@
#include "sflphone_const.h" #include "sflphone_const.h"
ConfigurationDialogKDE::ConfigurationDialogKDE(sflphone_kdeView *parent) ConfigurationDialog::ConfigurationDialog(SFLPhoneView *parent)
:KConfigDialog(parent, SETTINGS_NAME, ConfigurationSkeleton::self()) :KConfigDialog(parent, SETTINGS_NAME, ConfigurationSkeleton::self())
{ {
this->setWindowIcon(QIcon(ICON_SFLPHONE)); this->setWindowIcon(QIcon(ICON_SFLPHONE));
@ -60,19 +60,18 @@ ConfigurationDialogKDE::ConfigurationDialogKDE(sflphone_kdeView *parent)
} }
ConfigurationDialogKDE::~ConfigurationDialogKDE() ConfigurationDialog::~ConfigurationDialog()
{ {
} }
void ConfigurationDialog::updateWidgets()
void ConfigurationDialogKDE::updateWidgets()
{ {
qDebug() << "updateWidgets"; qDebug() << "updateWidgets";
dlgAudio->updateWidgets(); dlgAudio->updateWidgets();
dlgAccounts->updateWidgets(); dlgAccounts->updateWidgets();
} }
void ConfigurationDialogKDE::updateSettings() void ConfigurationDialog::updateSettings()
{ {
qDebug() << "updateSettings"; qDebug() << "updateSettings";
dlgAudio->updateSettings(); dlgAudio->updateSettings();
@ -80,19 +79,19 @@ void ConfigurationDialogKDE::updateSettings()
qDebug() << "alsaPlugin = " << ConfigurationSkeleton::self()->alsaPlugin(); qDebug() << "alsaPlugin = " << ConfigurationSkeleton::self()->alsaPlugin();
} }
bool ConfigurationDialogKDE::hasChanged() bool ConfigurationDialog::hasChanged()
{ {
qDebug() << "hasChanged" << dlgAudio->hasChanged() << dlgAccounts->hasChanged(); qDebug() << "hasChanged" << dlgAudio->hasChanged() << dlgAccounts->hasChanged();
return dlgAudio->hasChanged() || dlgAccounts->hasChanged(); return dlgAudio->hasChanged() || dlgAccounts->hasChanged();
} }
void ConfigurationDialogKDE::updateButtons() void ConfigurationDialog::updateButtons()
{ {
qDebug() << "updateButtons"; qDebug() << "updateButtons";
enableButtonApply( hasChanged() ); enableButtonApply( hasChanged() );
} }
void ConfigurationDialogKDE::applyCustomSettings() void ConfigurationDialog::applyCustomSettings()
{ {
qDebug() << "applyCustomSettings"; qDebug() << "applyCustomSettings";
// if(hasChanged()) // if(hasChanged())
@ -105,7 +104,7 @@ void ConfigurationDialogKDE::applyCustomSettings()
emit changesApplied(); emit changesApplied();
} }
void ConfigurationDialogKDE::reload() void ConfigurationDialog::reload()
{ {
qDebug() << "reload"; qDebug() << "reload";
ConfigurationSkeleton::self()->readConfig(); ConfigurationSkeleton::self()->readConfig();

View File

@ -25,7 +25,7 @@
#include "kcfg_settings.h" #include "kcfg_settings.h"
#include "sflphone_kdeview.h" #include "SFLPhoneView.h"
#define SETTINGS_NAME "settings" #define SETTINGS_NAME "settings"
@ -38,7 +38,7 @@ class DlgAddressBook;
class DlgRecord; class DlgRecord;
class DlgHooks; class DlgHooks;
class sflphone_kdeView; class SFLPhoneView;
/** /**
@author Jérémy Quentin <jeremy.quentin@gmail.com> @author Jérémy Quentin <jeremy.quentin@gmail.com>
@ -51,7 +51,7 @@ class sflphone_kdeView;
A few things might be done a cleaner way by passing the handling A few things might be done a cleaner way by passing the handling
to the skeleton like it has been done with codecs. to the skeleton like it has been done with codecs.
*/ */
class ConfigurationDialogKDE : public KConfigDialog class ConfigurationDialog : public KConfigDialog
{ {
Q_OBJECT Q_OBJECT
private: private:
@ -66,9 +66,9 @@ private:
DlgHooks * dlgHooks; DlgHooks * dlgHooks;
public: public:
ConfigurationDialogKDE(sflphone_kdeView *parent = 0); ConfigurationDialog(SFLPhoneView *parent = 0);
~ConfigurationDialogKDE(); ~ConfigurationDialog();
public slots: public slots:

View File

@ -23,7 +23,7 @@
#include <QtGui/QInputDialog> #include <QtGui/QInputDialog>
#include "configurationmanager_interface_singleton.h" #include "configurationmanager_interface_singleton.h"
#include "sflphone_kdeview.h" #include "SFLPhoneView.h"
#include "sflphone_const.h" #include "sflphone_const.h"
#include "conf/ConfigurationDialog.h" #include "conf/ConfigurationDialog.h"