Skip to content
Snippets Groups Projects
Commit aba3106f authored by Jérémy Quentin's avatar Jérémy Quentin
Browse files

[#1562] crashes when trying to change item of a call of state "OVER"

[#1563] should display debug messages only if asked with --with-debug at compilation
+ changed copyright and author email address
parent 25d72ad5
Branches
Tags
No related merge requests found
Showing
with 92 additions and 94 deletions
...@@ -52,4 +52,11 @@ You can change the prefix of the installation using: ...@@ -52,4 +52,11 @@ You can change the prefix of the installation using:
.config.sh --prefix="expected_prefix_directory" .config.sh --prefix="expected_prefix_directory"
By default, it is set to /usr. By default, it is set to /usr/local.
\ No newline at end of file
******************************************************
You can enable debug messages using:
.config.sh --with-debug
...@@ -20,14 +20,24 @@ cd build ...@@ -20,14 +20,24 @@ cd build
# if $prefix # if $prefix
# then options=$@" -DCMAKE_INSTALL_PREFIX="$prefix_env # then options=$@" -DCMAKE_INSTALL_PREFIX="$prefix_env
options=`echo $@ | sed "s/--prefix=/-DCMAKE_INSTALL_PREFIX=/g"` # debug=`echo $@ | grep -q "debug"`
options=`echo $@ | sed "s/--prefix=/-DCMAKE_INSTALL_PREFIX=/g" | sed "s/--with-debug//g"`
if `echo $@ | grep -q "\--with-debug"`
then echo "Enable debug messages"
options="$options -DCMAKE_BUILD_TYPE=\"Debug\""
else echo "Disable debug messages"
options="$options -DCMAKE_BUILD_TYPE=\"Release\""
fi
echo "Passing argument '$options' to cmake"
autocmd cmake $options .. autocmd cmake $options ..
echo $options
echo "**********************************************" echo "**********************************************"
echo "Configuration done!" echo "Configuration done!"
echo "Run \`cd build\' to go to the build directory." echo "Run \`cd build' to go to the build directory."
echo "Then run \`make\'to build the software." echo "Then run \`make'to build the software."
echo "**********************************************" echo "**********************************************"
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<gui name="tutorial3" <!--<gui name="tutorial3"
version="1" version="1"
xmlns="http://www.kde.org/standards/kxmlgui/1.0" xmlns="http://www.kde.org/standards/kxmlgui/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kxmlgui/1.0 xsi:schemaLocation="http://www.kde.org/standards/kxmlgui/1.0
http://www.kde.org/standards/kxmlgui/1.0/kxmlgui.xsd" > http://www.kde.org/standards/kxmlgui/1.0/kxmlgui.xsd" >
-->
<gui name="sflphone-client-kde" version="1">
<MenuBar> <MenuBar>
<Menu name="Actions" > <Menu name="Actions" >
...@@ -37,4 +40,16 @@ ...@@ -37,4 +40,16 @@
</Menu> </Menu>
</MenuBar> </MenuBar>
<!--<ToolBar name="mainToolBar" position="Top" noMerge="1" fullWidth="true" newline="true" >
<Action name="action_accept" />
<Action name="action_refuse" />
<Action name="action_hold" />
<Action name="action_transfer" />
<Action name="action_record" />
<Separator />
<Action name="action_history" />
<Action name="action_addressBook" />
<Separator />
<Action name="action_mailBox" />
</ToolBar> -->
</gui> </gui>
\ No newline at end of file
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <kled.h> #include <kled.h>
/** /**
@author Jérémy Quentin <jeremy.quentin@gmail.com> @author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
*/ */
class AccountItemWidget : public QWidget class AccountItemWidget : public QWidget
{ {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
/** /**
@author Jérémy Quentin <jeremy.quentin@gmail.com> @author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
*/ */
class AccountWizard : public QWizard class AccountWizard : public QWizard
{ {
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "Account.h" #include "Account.h"
/** /**
@author Jérémy Quentin <jeremy.quentin@gmail.com> @author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
*/ */
class ActionSetAccountFirst : public QAction class ActionSetAccountFirst : public QAction
{ {
......
ADD_DEFINITIONS(${KDE4_DEFINITIONS} ${QT_DEFINITIONS} -fexceptions -DDATA_INSTALL_DIR="\\\"${DATA_INSTALL_DIR}\\\"" ) ADD_DEFINITIONS(${KDE4_DEFINITIONS} ${QT_DEFINITIONS} -fexceptions -DDATA_INSTALL_DIR="\\\"${DATA_INSTALL_DIR}\\\"" )
SET ( KDE4_KABC_LIBS -lkabc ) # 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}")
IF(${CMAKE_BUILD_TYPE} MATCHES Release)
MESSAGE("NO DEBUG OUTPUT")
ADD_DEFINITIONS( -DQT_NO_DEBUG_OUTPUT )
ENDIF(DEFINED DEBUG_DISABLED)
SET ( KDE4_KABC_LIBS -lkabc )
SET( SET(
sflphone_client_kde_SRCS sflphone_client_kde_SRCS
......
...@@ -140,15 +140,6 @@ void Call::initCallItem() ...@@ -140,15 +140,6 @@ void Call::initCallItem()
mainLayout->addLayout(descr); mainLayout->addLayout(descr);
mainLayout->addItem(horizontalSpacer); mainLayout->addItem(horizontalSpacer);
// QGridLayout * mainLayout = new QGridLayout(itemWidget);
// mainLayout->setMargin(3);
// mainLayout->setSpacing(3);
// mainLayout->addWidget(labelIcon, 0, 0, 2, 1);
// mainLayout->addWidget(labelCallNumber, 0, 1, 1, 2);
// mainLayout->addWidget(labelTransferPrefix, 1, 1, 1, 1);
// mainLayout->addWidget(labelTransferNumber, 1, 2, 1, 2);
// mainLayout->addItem(horizontalSpacer, 0, 3, 1, 3);
itemWidget->setLayout(mainLayout); itemWidget->setLayout(mainLayout);
} }
...@@ -157,13 +148,6 @@ void Call::setItemIcon(const QString pixmap) ...@@ -157,13 +148,6 @@ void Call::setItemIcon(const QString pixmap)
labelIcon->setPixmap(QPixmap(pixmap)); labelIcon->setPixmap(QPixmap(pixmap));
} }
// void Call::setPeerName(const QString peerName)
// {
// qDebug() << "setPeerName(" << peerName;
// this->peerName = peerName;
// if(!labelPeerName) labelPeerName = new QLabel(peerName + " : ");
// labelPeerName->setText(peerName + " : ");
// }
Call::Call(call_state startState, QString callId, QString peerName, QString peerNumber, QString account) Call::Call(call_state startState, QString callId, QString peerName, QString peerNumber, QString account)
{ {
...@@ -618,6 +602,8 @@ void Call::changeCurrentState(call_state newState) ...@@ -618,6 +602,8 @@ void Call::changeCurrentState(call_state newState)
} }
void Call::updateItem() void Call::updateItem()
{
if(currentState != CALL_STATE_OVER)
{ {
if(currentState == CALL_STATE_CURRENT && recording) if(currentState == CALL_STATE_CURRENT && recording)
setItemIcon(ICON_CURRENT_REC); setItemIcon(ICON_CURRENT_REC);
...@@ -632,4 +618,9 @@ void Call::updateItem() ...@@ -632,4 +618,9 @@ void Call::updateItem()
if(!transfer) if(!transfer)
labelTransferNumber->setText(""); labelTransferNumber->setText("");
} }
else
{
qDebug() << "Updating item of call of state OVER. Doing nothing.";
}
}
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
using namespace KABC; using namespace KABC;
/** /**
@author Jérémy Quentin <jeremy.quentin@gmail.com> @author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
*/ */
class Contact{ class Contact{
private: private:
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include "Contact.h" #include "Contact.h"
/** /**
@author Jérémy Quentin <jeremy.quentin@gmail.com> @author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
*/ */
class ContactItemWidget : public QWidget class ContactItemWidget : public QWidget
{ {
......
...@@ -120,7 +120,7 @@ void SFLPhone::setupActions() ...@@ -120,7 +120,7 @@ void SFLPhone::setupActions()
toolbar->addAction(view->action_addressBook); toolbar->addAction(view->action_addressBook);
toolbar->addSeparator(); toolbar->addSeparator();
toolbar->addAction(view->action_mailBox); toolbar->addAction(view->action_mailBox);
toolbar->setIconSize(QSize(24,24)); toolbar->setIconSize(QSize(TOOLBAR_SIZE,TOOLBAR_SIZE));
trayIconMenu = new QMenu(this); trayIconMenu = new QMenu(this);
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include "instance_dbus_interface.h" #include "instance_dbus_interface.h"
/** /**
@author Jérémy Quentin <jeremy.quentin@gmail.com> @author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
*/ */
class InstanceInterfaceSingleton class InstanceInterfaceSingleton
{ {
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "sflphone_const.h" #include "sflphone_const.h"
static const char description[] = I18N_NOOP("A KDE 4 Client for SFLPhone"); static const char description[] = I18N_NOOP("A KDE 4 Client for SFLPhone");
static const char version[] = "0.9.5"; static const char version[] = "0.9.5";
...@@ -37,12 +36,12 @@ int main(int argc, char **argv) ...@@ -37,12 +36,12 @@ int main(int argc, char **argv)
version, version,
ki18n(description), ki18n(description),
KAboutData::License_GPL, KAboutData::License_GPL,
ki18n("(C) 2009 Jérémy Quentin"), ki18n("(C) 2009 Savoir-faire Linux"),
KLocalizedString(), KLocalizedString(),
0, 0,
"jeremy.quentin@savoirfairelinux.com"); "jeremy.quentin@savoirfairelinux.com");
about.addAuthor( ki18n("Jérémy Quentin"), KLocalizedString(), "jeremy.quentin@gmail.com" ); about.addAuthor( ki18n("Jérémy Quentin"), KLocalizedString(), "jeremy.quentin@savoirfairelinux.com" );
KCmdLineArgs::init(argc, argv, &about); KCmdLineArgs::init(argc, argv, &about);
KCmdLineOptions options; KCmdLineOptions options;
//options.add("+[URL]", ki18n( "Document to open" )); //options.add("+[URL]", ki18n( "Document to open" ));
......
...@@ -5,46 +5,6 @@ ...@@ -5,46 +5,6 @@
<file>../icons/x-office-address-book.png</file> <file>../icons/x-office-address-book.png</file>
<file>../icons/add.png</file> <file>../icons/add.png</file>
<file>../icons/remove.png</file> <file>../icons/remove.png</file>
<file>../icons/del_off.png</file>
<file>../icons/del_on.png</file>
<file>../icons/accept.svg</file>
<file>../icons/busy.svg</file>
<file>../icons/call.svg</file>
<file>../icons/current.svg</file>
<file>../icons/dial.svg</file>
<file>../icons/fail.svg</file>
<file>../icons/hang_up.svg</file>
<file>../icons/history2.svg</file>
<file>../icons/history.svg</file>
<file>../icons/hold.svg</file>
<file>../icons/icon_accept.svg</file>
<file>../icons/icon_call.svg</file>
<file>../icons/icon_dialpad_off.svg</file>
<file>../icons/icon_dialpad.svg</file>
<file>../icons/icon_hangup.svg</file>
<file>../icons/icon_hold.svg</file>
<file>../icons/icon_rec.svg</file>
<file>../icons/icon_unhold.svg</file>
<file>../icons/icon_volume_off.svg</file>
<file>../icons/icon_volume.svg</file>
<file>../icons/incoming.svg</file>
<file>../icons/mailbox.svg</file>
<file>../icons/mic_25.svg</file>
<file>../icons/mic_50.svg</file>
<file>../icons/mic_75.svg</file>
<file>../icons/mic.svg</file>
<file>../icons/missed.svg</file>
<file>../icons/outgoing.svg</file>
<file>../icons/rec_call.svg</file>
<file>../icons/refuse.svg</file>
<file>../icons/ring.svg</file>
<file>../icons/speaker_25.svg</file>
<file>../icons/speaker_50.svg</file>
<file>../icons/speaker_75.svg</file>
<file>../icons/speaker.svg</file>
<file>../icons/stock_person.svg</file>
<file>../icons/transfert.svg</file>
<file>../icons/unhold.svg</file>
<file>../icons/accept.svg</file> <file>../icons/accept.svg</file>
<file>../icons/busy.svg</file> <file>../icons/busy.svg</file>
<file>../icons/call.svg</file> <file>../icons/call.svg</file>
......
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
#define PAGE_ACCOUNTS 2 #define PAGE_ACCOUNTS 2
#define PAGE_AUDIO 3 #define PAGE_AUDIO 3
#define TOOLBAR_SIZE 22
#define CONTACT_ITEM_HEIGHT 40 #define CONTACT_ITEM_HEIGHT 40
#define CONFIG_FILE_PATH "/.sflphone/sflphonedrc" #define CONFIG_FILE_PATH "/.sflphone/sflphonedrc"
......
...@@ -47,7 +47,7 @@ class ConfigurationDialog; ...@@ -47,7 +47,7 @@ class ConfigurationDialog;
* here. * here.
* *
* @short Main view * @short Main view
* @author Jérémy Quentin <jeremy.quentin@gmail.com> * @author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
* @version 0.1 * @version 0.1
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment