~renatofilho/telephony-service/fix-phone-number-field-cursor

« back to all changes in this revision

Viewing changes to libtelephonyservice/callmanager.h

  • Committer: Gustavo Pichorim Boiko
  • Date: 2014-01-20 12:57:43 UTC
  • mto: This revision was merged to the branch mainline in revision 767.
  • Revision ID: gustavo.boiko@canonical.com-20140120125743-3b7uqlb2lhaxu22w
Improve the support for handling multiple calls by:
- Using a different approach to detect background calls in the QML plugin
- Make it possible to hangup the active call to answer an incoming one
- Show notifications when calls are put on hold, when they are rejected and when
  they end.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    Q_INVOKABLE void startCall(const QString &phoneNumber);
57
57
    Q_INVOKABLE QString getVoicemailNumber();
58
58
 
59
 
    QObject *foregroundCall() const;
60
 
    QObject *backgroundCall() const;
 
59
    CallEntry *foregroundCall() const;
 
60
    CallEntry *backgroundCall() const;
61
61
    bool hasCalls() const;
62
62
    bool hasBackgroundCall() const;
63
63
 
80
80
    explicit CallManager(QObject *parent = 0);
81
81
    void refreshProperties();
82
82
    void notifyEndedCall(const Tp::CallChannelPtr &channel);
 
83
    int activeCallsCount() const;
83
84
 
84
85
    QList<CallEntry*> mCallEntries;
85
86
    QString mVoicemailNumber;