~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to kde/src/lib/callmodel.h

  • Committer: Jackson Doak
  • Date: 2013-07-10 21:04:46 UTC
  • mfrom: (20.1.3 sid)
  • Revision ID: noskcaj@ubuntu.com-20130710210446-y8f587vza807icr9
Properly merged from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************
2
 
 *   Copyright (C) 2009 by Savoir-Faire Linux                               *
3
 
 *   Author : Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>          *
4
 
 *            Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
 
2
 *   Copyright (C) 2009-2013 by Savoir-Faire Linux                          *
 
3
 *   Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
5
4
 *                                                                          *
6
5
 *   This library is free software; you can redistribute it and/or          *
7
6
 *   modify it under the terms of the GNU Lesser General Public             *
28
27
#include "typedefs.h"
29
28
 
30
29
//Qt
31
 
class QDragEnterEvent;
32
 
class QDebug;
33
30
class QModelIndex;
34
31
 
35
32
//SFLPhone
36
33
class Call;
37
34
//class AccountList;
38
35
class Account;
39
 
class ContactBackend;
40
 
class HistoryModel;
41
36
 
42
37
//Typedef
43
38
typedef QMap<QString, Call*>  CallMap;
50
45
{
51
46
   Q_OBJECT
52
47
public:
53
 
   CallModelBase(QObject* parent = 0);
 
48
   explicit CallModelBase(QObject* parent = nullptr);
54
49
   ~CallModelBase();
55
50
   virtual Call* addCall              ( Call* call           , Call* parent =0      );
56
51
   virtual Call* getCall              ( const QString& callId                       ) const = 0;
58
53
 
59
54
   bool isValid();
60
55
   
61
 
private slots:
 
56
private Q_SLOTS:
62
57
   void callStateChanged      ( const QString& callID    , const QString &state   );
63
58
   void incomingCall          ( const QString& accountID , const QString & callID );
64
59
   void incomingConference    ( const QString& confID                             );
88
83
private:
89
84
   static bool dbusInit;
90
85
   
91
 
signals:
 
86
Q_SIGNALS:
92
87
   ///Emitted when a call state change
93
88
   void callStateChanged        ( Call* call                              );
94
89
   ///Emitted when a new call is incoming