From eaaff5158a6081e95fb38ac4ed89a93724509484 Mon Sep 17 00:00:00 2001
From: Emmanuel Lepage <emmanuel.lepage@savoirfairelinux.com>
Date: Mon, 12 Dec 2011 17:20:48 -0500
Subject: [PATCH] [ #7876 ] Sort include by owner, fix license issues

---
 kde/src/AccountListModel.cpp          |  9 +++++-
 kde/src/AccountView.cpp               | 27 +++++++++++++++-
 kde/src/AccountView.h                 | 19 ++++++++++++
 kde/src/ActionSetAccountFirst.cpp     |  7 +++--
 kde/src/AkonadiBackend.cpp            | 37 +++++++++++++++++++---
 kde/src/AkonadiBackend.h              | 19 ++++++++++++
 kde/src/CallView.cpp                  | 37 +++++++++++++++++++---
 kde/src/CallView.h                    | 19 ++++++++++++
 kde/src/Codec.cpp                     |  5 +++
 kde/src/SFLPhone.cpp                  | 29 ++++++++++++------
 kde/src/SFLPhoneView.cpp              | 37 +++++++++++-----------
 kde/src/SFLPhoneapplication.cpp       | 27 +++++++++++++++-
 kde/src/lib/Account.cpp               |  7 ++++-
 kde/src/lib/AccountList.cpp           |  6 +++-
 kde/src/lib/Call.cpp                  |  4 ++-
 kde/src/lib/CallModel.cpp             |  1 +
 kde/src/lib/CallModel.hpp             | 34 ++++++++++++++++++---
 kde/src/lib/Contact.cpp               |  9 +++---
 kde/src/lib/ContactBackend.cpp        | 27 +++++++++++++++-
 kde/src/lib/ContactBackend.h          | 21 +++++++++++++
 kde/src/lib/Item.cpp                  |  6 +++-
 kde/src/widgets/AccountItemWidget.cpp |  7 +++--
 kde/src/widgets/BookmarkDock.cpp      | 32 +++++++++++++++++--
 kde/src/widgets/BookmarkDock.h        | 19 ++++++++++++
 kde/src/widgets/CallTreeItem.cpp      | 25 +++++++++------
 kde/src/widgets/ContactDock.cpp       | 42 ++++++++++++++++++++-----
 kde/src/widgets/ContactDock.h         | 19 ++++++++++++
 kde/src/widgets/ContactItemWidget.cpp | 23 +++++++++-----
 kde/src/widgets/Dialpad.cpp           | 11 ++++---
 kde/src/widgets/HistoryDock.cpp       | 44 ++++++++++++++++++++++-----
 kde/src/widgets/HistoryDock.h         | 20 ++++++++++++
 kde/src/widgets/HistoryTreeItem.cpp   | 17 ++++++++---
 kde/src/widgets/HistoryTreeItem.h     |  3 --
 kde/src/widgets/SFLPhoneTray.cpp      | 14 ++++++---
 34 files changed, 552 insertions(+), 111 deletions(-)

diff --git a/kde/src/AccountListModel.cpp b/kde/src/AccountListModel.cpp
index 7d3a74c0ba..12f1d06e83 100755
--- a/kde/src/AccountListModel.cpp
+++ b/kde/src/AccountListModel.cpp
@@ -18,11 +18,18 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
+
+//Parent
 #include "AccountListModel.h"
 
+//SFLPhone library
 #include "lib/sflphone_const.h"
+
+//SFLPhone
 #include "conf/ConfigAccountList.h"
-#include <QDebug>
+
+//Qt
+#include <QtCore/QDebug>
 
 ///Constructor
 AccountListModel::AccountListModel(QObject *parent)
diff --git a/kde/src/AccountView.cpp b/kde/src/AccountView.cpp
index d341779255..5e7970143b 100644
--- a/kde/src/AccountView.cpp
+++ b/kde/src/AccountView.cpp
@@ -1,7 +1,32 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
+
+//Parent
 #include "AccountView.h"
 
-#include <QDebug>
+
+//Qt
+#include <QtCore/QDebug>
 #include <QtGui/QListWidgetItem>
+
+//SFLPhone library
 #include "lib/sflphone_const.h"
 #include "lib/configurationmanager_interface_singleton.h"
 
diff --git a/kde/src/AccountView.h b/kde/src/AccountView.h
index c0d46c64de..bb0e9a0fdf 100644
--- a/kde/src/AccountView.h
+++ b/kde/src/AccountView.h
@@ -1,3 +1,22 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
 #ifndef ACCOUNT_VIEW_H
 #define ACCOUNT_VIEW_H
 
diff --git a/kde/src/ActionSetAccountFirst.cpp b/kde/src/ActionSetAccountFirst.cpp
index dc57a71e10..bebea98059 100755
--- a/kde/src/ActionSetAccountFirst.cpp
+++ b/kde/src/ActionSetAccountFirst.cpp
@@ -18,9 +18,12 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
-  
+
+//Parent
 #include "ActionSetAccountFirst.h"
-#include <klocale.h>
+
+//KDE
+#include <KLocale>
 
 ///Constrctor
 ActionSetAccountFirst::ActionSetAccountFirst(Account* account, QObject *parent)
diff --git a/kde/src/AkonadiBackend.cpp b/kde/src/AkonadiBackend.cpp
index c0573663b2..3935cd6807 100644
--- a/kde/src/AkonadiBackend.cpp
+++ b/kde/src/AkonadiBackend.cpp
@@ -1,23 +1,50 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
+
+//Parent
 #include "AkonadiBackend.h"
+
+//Qt
 #include <QtCore/QTimer>
+#include <QtCore/QObject>
+
+//KDE
+#include <kdialog.h>
 #include <akonadi/control.h>
 #include <akonadi/collectionfilterproxymodel.h>
 #include <akonadi/kmime/messagemodel.h>
-#include <kabc/contactgroup.h>
-#include <kabc/phonenumber.h>
 #include <akonadi/recursiveitemfetchjob.h>
 #include <akonadi/itemfetchscope.h>
 #include <akonadi/collectionfetchjob.h>
 #include <akonadi/collectionfetchscope.h>
 #include <akonadi/contact/contacteditor.h>
-#include <kdialog.h>
-
-#include <QObject>
 #include <akonadi/session.h>
 #include <kabc/addressee.h>
 #include <kabc/addresseelist.h>
+#include <kabc/contactgroup.h>
+#include <kabc/phonenumber.h>
 
+//SFLPhone library
 #include "lib/Contact.h"
+
+//SFLPhone
 #include "SFLPhone.h"
 #include "SFLPhoneView.h"
 
diff --git a/kde/src/AkonadiBackend.h b/kde/src/AkonadiBackend.h
index fdc97e6305..b016a993c7 100644
--- a/kde/src/AkonadiBackend.h
+++ b/kde/src/AkonadiBackend.h
@@ -1,6 +1,25 @@
 #ifndef AKONADI_BACKEND_H
 #define AKONADI_BACKEND_H
 
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
 #include <lib/ContactBackend.h>
 #include <akonadi/collectionmodel.h>
 
diff --git a/kde/src/CallView.cpp b/kde/src/CallView.cpp
index 1162520b1f..db183dc554 100644
--- a/kde/src/CallView.cpp
+++ b/kde/src/CallView.cpp
@@ -1,16 +1,43 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
+
+//Parent
 #include "CallView.h"
-#include "AkonadiBackend.h"
+
+//Qt
+#include <QtGui/QInputDialog>
+#include <QtGui/QTreeWidget>
+#include <QtGui/QTreeWidgetItem>
+
+
+//SFLPhone library
 #include "lib/Contact.h"
 #include "lib/sflphone_const.h"
 #include "lib/callmanager_interface_singleton.h"
-#include "widgets/CallTreeItem.h"
 
+//SFLPhone
+#include "widgets/CallTreeItem.h"
 #include "SFLPhone.h"
 #include "SFLPhoneView.h"
+#include "AkonadiBackend.h"
 
-#include <QtGui/QInputDialog>
-#include <QtGui/QTreeWidget>
-#include <QtGui/QTreeWidgetItem>
 
 ///Retrieve current and older calls from the daemon, fill history and the calls TreeView and enable drag n' drop
 CallView::CallView(QWidget* parent) : QTreeWidget(parent)
diff --git a/kde/src/CallView.h b/kde/src/CallView.h
index f2fb282935..228ba09aba 100644
--- a/kde/src/CallView.h
+++ b/kde/src/CallView.h
@@ -1,5 +1,24 @@
 #ifndef CALL_VIEW
 #define CALL_VIEW
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
 
 #include <QtGui/QItemDelegate>
 #include <QtGui/QTreeWidget>
diff --git a/kde/src/Codec.cpp b/kde/src/Codec.cpp
index c736aa52c0..b9cc5e62b8 100755
--- a/kde/src/Codec.cpp
+++ b/kde/src/Codec.cpp
@@ -18,9 +18,14 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
+
+//Parent
 #include "Codec.h"
 
+//Qt
 #include <QtCore/QString>
+
+//SFLPhone library
 #include "lib/configurationmanager_interface_singleton.h"
 #include "lib/sflphone_const.h"
 
diff --git a/kde/src/SFLPhone.cpp b/kde/src/SFLPhone.cpp
index 2e1134a059..3fb6a48303 100755
--- a/kde/src/SFLPhone.cpp
+++ b/kde/src/SFLPhone.cpp
@@ -18,33 +18,42 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
-#include <unistd.h>
+
+//Parent
 #include "SFLPhone.h"
 
+//System
 #include <unistd.h>
+
+//Qt
+#include <QtCore/QString>
+#include <QtGui/QActionGroup>
+#include <QtGui/QLabel>
+#include <QtGui/QCursor>
+
+//KDE
 #include <KStandardAction>
 #include <KAction>
 #include <KStatusBar>
-#include <QtGui/QCursor>
 #include <KActionCollection>
-#include <QtCore/QString>
 #include <KNotification>
-#include <QActionGroup>
-#include <QLabel>
-#include <kshortcutsdialog.h>
+#include <KShortcutsDialog>
 
+//SFLPhone library
 #include "lib/sflphone_const.h"
 #include "lib/instance_interface_singleton.h"
 #include "lib/configurationmanager_interface_singleton.h"
 #include "lib/Contact.h"
+
+//SFLPhone
 #include "AkonadiBackend.h"
-#include "conf/ConfigurationSkeleton.h"
-#include "widgets/ContactDock.h"
 #include "AccountWizard.h"
-#include "widgets/HistoryDock.h"
-#include "widgets/BookmarkDock.h"
 #include "SFLPhoneView.h"
 #include "widgets/SFLPhoneTray.h"
+#include "widgets/ContactDock.h"
+#include "widgets/HistoryDock.h"
+#include "widgets/BookmarkDock.h"
+#include "conf/ConfigurationSkeleton.h"
 
 SFLPhone* SFLPhone::m_sApp = NULL;
 TreeWidgetCallModel* SFLPhone::m_pModel = NULL;
diff --git a/kde/src/SFLPhoneView.cpp b/kde/src/SFLPhoneView.cpp
index 8569449006..4f1a26058b 100755
--- a/kde/src/SFLPhoneView.cpp
+++ b/kde/src/SFLPhoneView.cpp
@@ -19,35 +19,36 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
 
+//Parent
 #include "SFLPhoneView.h"
 
+//Qt
+#include <QtCore/QString>
 #include <QtGui/QContextMenuEvent>
 #include <QtGui/QPalette>
 #include <QtGui/QInputDialog>
 #include <QtGui/QWidget>
-#include <QtCore/QString>
 #include <QErrorMessage>
 
-#include "conf/ConfigurationDialog.h"
-#include "AccountWizard.h"
-
-#include <klocale.h>
-#include <kaction.h>
-#include <kmenu.h>
-
+//KDE
+#include <KLocale>
+#include <KAction>
+#include <KMenu>
 #include <kabc/addressbook.h>
 
-#include "lib/sflphone_const.h"
+//SFLPhone
+#include "conf/ConfigurationDialog.h"
 #include "conf/ConfigurationSkeleton.h"
-#include "lib/configurationmanager_interface_singleton.h"
-#include "lib/callmanager_interface_singleton.h"
-#include "lib/instance_interface_singleton.h"
+#include "AccountWizard.h"
 #include "ActionSetAccountFirst.h"
 #include "SFLPhone.h"
-#include "lib/typedefs.h"
 
-
-using namespace KABC;
+//SFLPhone library
+#include "lib/typedefs.h"
+#include "lib/configurationmanager_interface_singleton.h"
+#include "lib/callmanager_interface_singleton.h"
+#include "lib/instance_interface_singleton.h"
+#include "lib/sflphone_const.h"
 
 //ConfigurationDialog* SFLPhoneView::configDialog;
 
@@ -353,15 +354,15 @@ int SFLPhoneView::phoneNumberTypesDisplayed()
    MapStringInt addressBookSettings = configurationManager.getAddressbookSettings().value();
    int typesDisplayed = 0;
    if(addressBookSettings[ADDRESSBOOK_DISPLAY_BUSINESS]) {
-      typesDisplayed = typesDisplayed | PhoneNumber::Work;
+      typesDisplayed = typesDisplayed | KABC::PhoneNumber::Work;
    }
    
    if(addressBookSettings[ADDRESSBOOK_DISPLAY_MOBILE]) {
-      typesDisplayed = typesDisplayed | PhoneNumber::Cell;
+      typesDisplayed = typesDisplayed | KABC::PhoneNumber::Cell;
    }
    
    if(addressBookSettings[ADDRESSBOOK_DISPLAY_HOME]) {
-      typesDisplayed = typesDisplayed | PhoneNumber::Home;
+      typesDisplayed = typesDisplayed | KABC::PhoneNumber::Home;
    }
    
    return typesDisplayed;
diff --git a/kde/src/SFLPhoneapplication.cpp b/kde/src/SFLPhoneapplication.cpp
index d6e156e1dd..57c8ef7846 100755
--- a/kde/src/SFLPhoneapplication.cpp
+++ b/kde/src/SFLPhoneapplication.cpp
@@ -1,15 +1,40 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
+
+//Parent
 #include "SFLPhoneapplication.h"
 
-
+//KDE
 #include <KCmdLineArgs>
 #include <KIconLoader>
 #include <KStandardDirs>
 #include <KNotification>
 #include <KSystemTrayIcon>
 #include <KMainWindow>
+
+//SFLPhone library
 #include "lib/instance_interface_singleton.h"
 #include "lib/configurationmanager_interface_singleton.h"
 #include "lib/callmanager_interface_singleton.h"
+
+//SFLPhone
 #include "SFLPhone.h"
 
 
diff --git a/kde/src/lib/Account.cpp b/kde/src/lib/Account.cpp
index 913811145d..449ea381fe 100644
--- a/kde/src/lib/Account.cpp
+++ b/kde/src/lib/Account.cpp
@@ -19,12 +19,17 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
+//Parent
 #include "Account.h"
 
-#include <QDebug>
+//Qt
+#include <QtCore/QDebug>
 #include <QtCore/QString>
 
+//SFLPhone
 #include "sflphone_const.h"
+
+//SFLPhone lib
 #include "configurationmanager_interface_singleton.h"
 
 ///Match state name to user readable string
diff --git a/kde/src/lib/AccountList.cpp b/kde/src/lib/AccountList.cpp
index be54288e7e..e97a34c6e9 100644
--- a/kde/src/lib/AccountList.cpp
+++ b/kde/src/lib/AccountList.cpp
@@ -19,10 +19,14 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
 
+//Parent
 #include "AccountList.h"
+
+//SFLPhone
 #include "sflphone_const.h"
-#include "configurationmanager_interface_singleton.h"
 
+//SFLPhone library
+#include "configurationmanager_interface_singleton.h"
 
 
 ///Constructors
diff --git a/kde/src/lib/Call.cpp b/kde/src/lib/Call.cpp
index eaf51ffdfd..3e3e8dd374 100644
--- a/kde/src/lib/Call.cpp
+++ b/kde/src/lib/Call.cpp
@@ -18,10 +18,12 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
+
+//Parent
 #include "Call.h"
 
+//SFLPhone library
 #include "CallModel.h"
-
 #include "callmanager_interface_singleton.h"
 #include "configurationmanager_interface_singleton.h"
 #include "ContactBackend.h"
diff --git a/kde/src/lib/CallModel.cpp b/kde/src/lib/CallModel.cpp
index 39c87e3395..61e057ac52 100644
--- a/kde/src/lib/CallModel.cpp
+++ b/kde/src/lib/CallModel.cpp
@@ -17,6 +17,7 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
+//Parent
 #include <CallModel.h>
 
 bool CallModelBase::dbusInit = false;
diff --git a/kde/src/lib/CallModel.hpp b/kde/src/lib/CallModel.hpp
index 352b2b46e8..973c8dac97 100644
--- a/kde/src/lib/CallModel.hpp
+++ b/kde/src/lib/CallModel.hpp
@@ -1,6 +1,30 @@
-#include <QHash>
-#include <QDragEnterEvent>
-#include <QDebug>
+/***************************************************************************
+ *   Copyright (C) 2009 by Savoir-Faire Linux                              *
+ *   Author : Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>         *
+ *            Emmanuel Lepage Vallee <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
+
+//Qt
+#include <QtCore/QHash>
+#include <QtCore/QDebug>
+#include <QtGui/QDragEnterEvent>
+
+//SFLPhone library
 #include "Call.h"
 #include "AccountList.h"
 #include "dbus/metatypes.h"
@@ -8,10 +32,12 @@
 #include "configurationmanager_interface_singleton.h"
 #include "instance_interface_singleton.h"
 #include "sflphone_const.h"
-#include "unistd.h"
 #include "typedefs.h"
 #include "ContactBackend.h"
 
+//System
+#include "unistd.h"
+
 //Static member
 template  <typename CallWidget, typename Index> QString CallModel<CallWidget,Index>::m_pPriorAccountId   = ""    ;
 template  <typename CallWidget, typename Index> AccountList* CallModel<CallWidget,Index>::m_pAccountList = 0     ;
diff --git a/kde/src/lib/Contact.cpp b/kde/src/lib/Contact.cpp
index 774e6dea4f..5764a94632 100644
--- a/kde/src/lib/Contact.cpp
+++ b/kde/src/lib/Contact.cpp
@@ -18,14 +18,15 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
+
+//Parent
 #include "Contact.h"
 
+//Qt
 #include <QtCore/QDebug>
-#include <kabc/addressee.h>
-#include <kabc/picture.h>
-#include <kabc/phonenumber.h>
-#include <QPixmap>
+#include <QtGui/QPixmap>
 
+//SFLPhone library
 #include "sflphone_const.h"
 
 ///Constructor
diff --git a/kde/src/lib/ContactBackend.cpp b/kde/src/lib/ContactBackend.cpp
index f95c0284ea..cedbd31dc4 100644
--- a/kde/src/lib/ContactBackend.cpp
+++ b/kde/src/lib/ContactBackend.cpp
@@ -1,7 +1,32 @@
+/***************************************************************************
+ *   Copyright (C) 2009 by Savoir-Faire Linux                              *
+ *   Author : Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>         *
+ *            Emmanuel Lepage Vallee <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ ***************************************************************************/
+
+//Parent
 #include "ContactBackend.h"
 
+//SFLPhone library
 #include "Contact.h"
-#include <QHash>
+
+//Qt
+#include <QtCore/QHash>
 
 ContactBackend::ContactBackend(QObject* parent) : QObject(parent)
 {
diff --git a/kde/src/lib/ContactBackend.h b/kde/src/lib/ContactBackend.h
index 1a3cc57a0c..a4a1180676 100644
--- a/kde/src/lib/ContactBackend.h
+++ b/kde/src/lib/ContactBackend.h
@@ -1,3 +1,24 @@
+/***************************************************************************
+ *   Copyright (C) 2009 by Savoir-Faire Linux                              *
+ *   Author : Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>         *
+ *            Emmanuel Lepage Vallee <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ ***************************************************************************/
+
 #ifndef CONTACT_BACKEND_H
 #define CONTACT_BACKEND_H
 
diff --git a/kde/src/lib/Item.cpp b/kde/src/lib/Item.cpp
index 7f2b2a40a8..4875cf9658 100644
--- a/kde/src/lib/Item.cpp
+++ b/kde/src/lib/Item.cpp
@@ -18,6 +18,10 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
+
+//Parent
 #include "Item.h"
-#include <QListWidgetItem>
+
+//Qt
+#include <QtGui/QListWidgetItem>
 
diff --git a/kde/src/widgets/AccountItemWidget.cpp b/kde/src/widgets/AccountItemWidget.cpp
index 1d5af8408d..9da618766d 100755
--- a/kde/src/widgets/AccountItemWidget.cpp
+++ b/kde/src/widgets/AccountItemWidget.cpp
@@ -18,12 +18,15 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
- 
+
+//Parent
 #include "AccountItemWidget.h"
 
+//Qt
 #include <QtGui/QHBoxLayout>
-#include <QDebug>
+#include <QtCore/QDebug>
 
+//SFLPhone library
 #include "lib/sflphone_const.h"
 
 ///Constructor
diff --git a/kde/src/widgets/BookmarkDock.cpp b/kde/src/widgets/BookmarkDock.cpp
index 10ec7b023a..0460d3ab31 100644
--- a/kde/src/widgets/BookmarkDock.cpp
+++ b/kde/src/widgets/BookmarkDock.cpp
@@ -1,12 +1,38 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
+
+//Parent
 #include "BookmarkDock.h"
 
+//Qt
 #include <QtGui/QVBoxLayout>
 #include <QtGui/QTreeWidgetItem>
-#include <KLocalizedString>
-#include <kicon.h>
-#include <klineedit.h>
 #include <QtGui/QTreeWidget>
 #include <QtGui/QSplitter>
+
+//KDE
+#include <KLocalizedString>
+#include <KIcon>
+#include <KLineEdit>
+
+//SFLPhone
 #include "conf/ConfigurationSkeleton.h"
 #include "widgets/HistoryTreeItem.h"
 
diff --git a/kde/src/widgets/BookmarkDock.h b/kde/src/widgets/BookmarkDock.h
index 3ed683b494..77b47a6757 100644
--- a/kde/src/widgets/BookmarkDock.h
+++ b/kde/src/widgets/BookmarkDock.h
@@ -1,3 +1,22 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
 #ifndef BOOKMARK_DOCK_H
 #define BOOKMARK_DOCK_H
 
diff --git a/kde/src/widgets/CallTreeItem.cpp b/kde/src/widgets/CallTreeItem.cpp
index 3598de0531..f23174dfe1 100644
--- a/kde/src/widgets/CallTreeItem.cpp
+++ b/kde/src/widgets/CallTreeItem.cpp
@@ -18,24 +18,31 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
 
-#include <QtCore/QStringList>
-
-#include <klocale.h>
-#include <kdebug.h>
-
-#include "lib/sflphone_const.h"
+//Parent
 #include "CallTreeItem.h"
-#include "lib/Contact.h"
-#include "lib/Call.h"
-#include "AkonadiBackend.h"
 
+//Qt
+#include <QtCore/QStringList>
 #include <QtGui/QWidget>
 #include <QtGui/QLabel>
 #include <QtGui/QSpacerItem>
 #include <QtGui/QHBoxLayout>
 #include <QtGui/QVBoxLayout>
+
+//KDE
+#include <KLocale>
+#include <KDebug>
 #include <KIcon>
 
+//SFLPhone library
+#include "lib/sflphone_const.h"
+#include "lib/Contact.h"
+#include "lib/Call.h"
+
+//SFLPhone
+#include "AkonadiBackend.h"
+
+
 ///Constant
 const char * CallTreeItem::callStateIcons[12] = {ICON_INCOMING, ICON_RINGING, ICON_CURRENT, ICON_DIALING, ICON_HOLD, ICON_FAILURE, ICON_BUSY, ICON_TRANSFER, ICON_TRANSF_HOLD, "", "", ICON_CONFERENCE};
 
diff --git a/kde/src/widgets/ContactDock.cpp b/kde/src/widgets/ContactDock.cpp
index 81291d2f9f..ad66089108 100644
--- a/kde/src/widgets/ContactDock.cpp
+++ b/kde/src/widgets/ContactDock.cpp
@@ -1,24 +1,50 @@
-
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
+
+//Parent
 #include "ContactDock.h"
 
+//Qt
+#include <QtCore/QDateTime>
 #include <QtGui/QVBoxLayout>
 #include <QtGui/QListWidget>
 #include <QtGui/QTreeWidget>
 #include <QtGui/QHeaderView>
 #include <QtGui/QCheckBox>
-#include <QtCore/QDateTime>
-#include <QSplitter>
-#include <klineedit.h>
-#include <KLocalizedString>
+#include <QtGui/QSplitter>
 #include <QtGui/QLabel>
-#include <QComboBox>
+#include <QtGui/QComboBox>
 
-#include <kicon.h>
+//KDE
+#include <KLineEdit>
+#include <KLocalizedString>
+#include <KIcon>
+
+//SFLPhone
 #include "AkonadiBackend.h"
 #include "ContactItemWidget.h"
+#include "SFLPhone.h"
 #include "conf/ConfigurationSkeleton.h"
+
+//SFLPhone library
 #include "lib/Call.h"
-#include "SFLPhone.h"
 #include "lib/Contact.h"
 
 ///@class QNumericTreeWidgetItem_hist TreeWidget using different sorting criterias
diff --git a/kde/src/widgets/ContactDock.h b/kde/src/widgets/ContactDock.h
index dbbfbc3d69..5eccdf2e4d 100644
--- a/kde/src/widgets/ContactDock.h
+++ b/kde/src/widgets/ContactDock.h
@@ -1,3 +1,22 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
 #ifndef CONTACT_DOCK_H
 #define CONTACT_DOCK_H
 
diff --git a/kde/src/widgets/ContactItemWidget.cpp b/kde/src/widgets/ContactItemWidget.cpp
index 17d5d6c53c..ec05e1909b 100644
--- a/kde/src/widgets/ContactItemWidget.cpp
+++ b/kde/src/widgets/ContactItemWidget.cpp
@@ -18,29 +18,36 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
 
+//Parent
+#include "ContactItemWidget.h"
+
+//Qt
 #include <QtCore/QMimeData>
 #include <QtGui/QApplication>
 #include <QtGui/QClipboard>
 #include <QtGui/QGridLayout>
 #include <QtGui/QMenu>
-
 #include <QtGui/QLabel>
 #include <QtGui/QSpacerItem>
-#include <KIcon>
 
-#include <lib/Contact.h>
+//KDE
+#include <KIcon>
+#include <KLocale>
+#include <KDebug>
+#include <KAction>
 
-#include <klocale.h>
-#include <kdebug.h>
+//System
 #include <unistd.h>
-#include <kaction.h>
 
-#include "lib/sflphone_const.h"
-#include "ContactItemWidget.h"
+//SFLPhone
 #include "AkonadiBackend.h"
 #include "widgets/BookmarkDock.h"
 #include "SFLPhone.h"
 
+//SFLPhone library
+#include "lib/Contact.h"
+#include "lib/sflphone_const.h"
+
 ///Constructor
 ContactItemWidget::ContactItemWidget(QWidget *parent)
    : QWidget(parent), m_pMenu(0),init(false)
diff --git a/kde/src/widgets/Dialpad.cpp b/kde/src/widgets/Dialpad.cpp
index a23bf72978..920cfb302c 100755
--- a/kde/src/widgets/Dialpad.cpp
+++ b/kde/src/widgets/Dialpad.cpp
@@ -18,12 +18,15 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
+
+//Parent
 #include "Dialpad.h"
 
-#include <QLabel>
-#include <QDebug>
-#include <QPushButton>
-#include <QGridLayout>
+//Qt
+#include <QtCore/QDebug>
+#include <QtGui/QLabel>
+#include <QtGui/QPushButton>
+#include <QtGui/QGridLayout>
 
 ///Constructor
 Dialpad::Dialpad(QWidget *parent)
diff --git a/kde/src/widgets/HistoryDock.cpp b/kde/src/widgets/HistoryDock.cpp
index 7fd7e0f2d7..4b5da6b75a 100644
--- a/kde/src/widgets/HistoryDock.cpp
+++ b/kde/src/widgets/HistoryDock.cpp
@@ -1,23 +1,51 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
+
+//Parent
 #include "HistoryDock.h"
 
-#include <kicon.h>
-#include <klineedit.h>
+//Qt
+#include <QtCore/QDebug>
+#include <QtCore/QString>
+#include <QtCore/QDate>
 #include <QtGui/QTreeWidget>
 #include <QtGui/QComboBox>
 #include <QtGui/QPushButton>
 #include <QtGui/QLabel>
-#include <QDebug>
 #include <QtGui/QTreeWidgetItem>
-#include <QtCore/QString>
-#include <kdatewidget.h>
-#include <QHeaderView>
 #include <QtGui/QCheckBox>
 #include <QtGui/QGridLayout>
-#include <QDate>
+#include <QtGui/QHeaderView>
+
+//KDE
+#include <KIcon>
+#include <KLineEdit>
+#include <KDateWidget>
+
+//SFLPhone
 #include "SFLPhone.h"
 #include "widgets/HistoryTreeItem.h"
-#include "conf/ConfigurationSkeleton.h"
 #include "AkonadiBackend.h"
+#include "conf/ConfigurationSkeleton.h"
+
+//SFLPhone library
 #include "lib/sflphone_const.h"
 
 ///Qt lack official functional sorting algo, so this hack around it
diff --git a/kde/src/widgets/HistoryDock.h b/kde/src/widgets/HistoryDock.h
index 3348c959b4..f114270e8b 100644
--- a/kde/src/widgets/HistoryDock.h
+++ b/kde/src/widgets/HistoryDock.h
@@ -1,3 +1,22 @@
+/***************************************************************************
+ *   Copyright (C) 2009-2010 by Savoir-Faire Linux                         *
+ *   Author : Emmanuel Lepage Valle <emmanuel.lepage@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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ **************************************************************************/
 #ifndef HISTORY_DOCK_H
 #define HISTORY_DOCK_H
 
@@ -13,6 +32,7 @@ class QComboBox;
 class QLabel;
 class QCheckBox;
 class QPushButton;
+class QDate;
 
 //KDE
 class KLineEdit;
diff --git a/kde/src/widgets/HistoryTreeItem.cpp b/kde/src/widgets/HistoryTreeItem.cpp
index 12f4b05386..d53cc9a76a 100644
--- a/kde/src/widgets/HistoryTreeItem.cpp
+++ b/kde/src/widgets/HistoryTreeItem.cpp
@@ -18,24 +18,31 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
 
+//Parent
+#include "HistoryTreeItem.h"
+
+//Qt
 #include <QtCore/QStringList>
 #include <QtGui/QGridLayout>
 #include <QtGui/QMenu>
+#include <QtGui/QLabel>
+#include <QtGui/QSpacerItem>
 
+//KDE
 #include <KLocale>
 #include <KDebug>
 #include <KAction>
-#include <QtGui/QLabel>
-#include <QtGui/QSpacerItem>
 #include <KIcon>
 
+//SFLPhone library
 #include "lib/sflphone_const.h"
-#include "HistoryTreeItem.h"
-#include "AkonadiBackend.h"
 #include "lib/Contact.h"
+#include "lib/Call.h"
+
+//SFLPhone
+#include "AkonadiBackend.h"
 #include "SFLPhone.h"
 #include "widgets/BookmarkDock.h"
-#include "lib/Call.h"
 
 const char * HistoryTreeItem::callStateIcons[12] = {ICON_INCOMING, ICON_RINGING, ICON_CURRENT, ICON_DIALING, ICON_HOLD, ICON_FAILURE, ICON_BUSY, ICON_TRANSFER, ICON_TRANSF_HOLD, "", "", ICON_CONFERENCE};
 
diff --git a/kde/src/widgets/HistoryTreeItem.h b/kde/src/widgets/HistoryTreeItem.h
index 518e6a8aba..7a125f8d09 100644
--- a/kde/src/widgets/HistoryTreeItem.h
+++ b/kde/src/widgets/HistoryTreeItem.h
@@ -29,9 +29,6 @@
 #define HISTORYTREE_ITEM_H
 
 #include <QtGui/QWidget>
-#include <QtCore/QList>
-#include <QtCore/QVariant>
-#include <QtCore/QVector>
 
 //SFLPhone
 class Call;
diff --git a/kde/src/widgets/SFLPhoneTray.cpp b/kde/src/widgets/SFLPhoneTray.cpp
index a14cbe51a0..95951fe946 100755
--- a/kde/src/widgets/SFLPhoneTray.cpp
+++ b/kde/src/widgets/SFLPhoneTray.cpp
@@ -19,13 +19,17 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  **************************************************************************/
 
-#include <QDebug>
-#include <KAction>
-#include <QMenu>
-#include <QIcon>
-
+//Parent
 #include "SFLPhoneTray.h"
 
+//Qt
+#include <QtCore/QDebug>
+#include <QtGui/QMenu>
+#include <QtGui/QIcon>
+
+//KDE
+#include <KAction>
+
 ///Constructor
 SFLPhoneTray::SFLPhoneTray(QIcon icon, QWidget *parent)
       : KSystemTrayIcon(icon, parent),
-- 
GitLab