~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/src/voiplink.h

  • Committer: Package Import Robot
  • Author(s): Francois Marier, Francois Marier, Mark Purcell
  • Date: 2014-10-18 15:08:50 UTC
  • mfrom: (1.1.12)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20141018150850-2exfk34ckb15pcwi
Tags: 1.4.1-0.1
[ Francois Marier ]
* Non-maintainer upload
* New upstream release (closes: #759576, #741130)
  - debian/rules +PJPROJECT_VERSION := 2.2.1
  - add upstream patch to fix broken TLS support
  - add patch to fix pjproject regression

[ Mark Purcell ]
* Build-Depends:
  - sflphone-daemon + libavformat-dev, libavcodec-dev, libswscale-dev,
  libavdevice-dev, libavutil-dev
  - sflphone-gnome + libclutter-gtk-1.0-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#define __VOIP_LINK_H__
36
36
 
37
37
#include <stdexcept>
 
38
#include <functional>
38
39
#include <string>
 
40
#include <vector>
 
41
#include <memory>
39
42
 
40
43
class Call;
41
44
class Account;
59
62
         * Virtual method
60
63
         * Event listener. Each event send by the call manager is received and handled from here
61
64
         */
62
 
        virtual bool getEvent() = 0;
 
65
        virtual bool handleEvents() = 0;
63
66
 
64
67
        /**
65
68
         * Virtual method
66
69
         * Build and send account registration request
67
70
         */
68
 
        virtual void sendRegister(Account *a) = 0;
 
71
        virtual void sendRegister(Account& a) = 0;
69
72
 
70
73
        /**
71
74
         * Virtual method
72
75
         * Build and send account unregistration request
 
76
         * Underlying ressources are released after unregistration
73
77
         */
74
 
        virtual void sendUnregister(Account *a) = 0;
 
78
        virtual void sendUnregister(Account& a, std::function<void(bool)> cb = std::function<void(bool)>()) = 0;
75
79
 
76
80
        /**
77
81
         * Place a new call
79
83
         * @param toUrl  The address of the recipient of the call
80
84
         * @return Call* The current call
81
85
         */
82
 
        virtual Call* newOutgoingCall(const std::string &id,
83
 
                                      const std::string &toUrl,
84
 
                                      const std::string &account_id) = 0;
 
86
        virtual std::shared_ptr<Call> newOutgoingCall(const std::string &id,
 
87
                                                      const std::string &toUrl,
 
88
                                                      const std::string &account_id) = 0;
 
89
 
 
90
        /**
 
91
         * Virtual method
 
92
         * Returns calls involving this account.
 
93
         */
 
94
        virtual std::vector<std::shared_ptr<Call> > getCalls(const std::string &account_id) const = 0;
85
95
 
86
96
        /**
87
97
         * Answer the call
144
154
        virtual void carryingDTMFdigits(const std::string &id, char code) = 0;
145
155
 
146
156
        /**
147
 
         * Return the codec protocol used for this call
148
 
         * @param call The call
149
 
         */
150
 
        virtual std::string getCurrentVideoCodecName(Call *call) const = 0;
151
 
        virtual std::string getCurrentAudioCodecNames(Call *call) const = 0;
152
 
 
153
 
        /**
154
157
         * Send a message to a call identified by its callid
155
158
         *
156
159
         * @param The Id of the call to send the message to