~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/src/audio/audiortp/ZrtpSessionCallback.h

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 *  shall include the source code for the parts of OpenSSL used as well
28
28
 *  as that of the covered work.
29
29
 */
30
 
 
 
30
 
31
31
#ifndef __SFL_ZRTP_CALLBACK_H__
32
32
#define __SFL_ZRTP_CALLBACK_H__
33
33
 
40
40
class SIPCall;
41
41
class DBusManagerImpl;
42
42
 
43
 
namespace sfl {
 
43
namespace sfl
 
44
{
44
45
 
45
 
    class ZrtpSessionCallbackException: public std::exception
46
 
    {
47
 
        virtual const char* what() const throw()
48
 
        {
49
 
        return "An exception occured while being in a zrtp callback\n";
 
46
class ZrtpSessionCallbackException: public std::exception
 
47
{
 
48
        virtual const char* what() const throw() {
 
49
            return "An exception occured while being in a zrtp callback\n";
50
50
        }
51
 
    };
52
 
    
53
 
    class ZrtpSessionCallback: public ZrtpUserCallback {
 
51
};
 
52
 
 
53
class ZrtpSessionCallback: public ZrtpUserCallback
 
54
{
54
55
    public:
55
 
        ZrtpSessionCallback(SIPCall *sipcall);
 
56
        ZrtpSessionCallback (SIPCall *sipcall);
56
57
 
57
 
        void secureOn(std::string cipher);
58
 
        void secureOff(void);
59
 
        void showSAS(std::string sas, bool verified);
60
 
        void zrtpNotSuppOther(void);
61
 
        void showMessage(GnuZrtpCodes::MessageSeverity sev, int32_t subCode); 
62
 
        void zrtpNegotiationFailed(GnuZrtpCodes::MessageSeverity severity, int subCode);
 
58
        void secureOn (std::string cipher);
 
59
        void secureOff (void);
 
60
        void showSAS (std::string sas, bool verified);
 
61
        void zrtpNotSuppOther (void);
 
62
        void showMessage (GnuZrtpCodes::MessageSeverity sev, int32_t subCode);
 
63
        void zrtpNegotiationFailed (GnuZrtpCodes::MessageSeverity severity, int subCode);
63
64
        void confirmGoClear();
64
 
                
 
65
 
65
66
    private:
66
67
        SIPCall* _sipcall;
67
 
                
 
68
 
68
69
        static std::map<int32, std::string*> _infoMap;
69
70
        static std::map<int32, std::string*> _warningMap;
70
71
        static std::map<int32, std::string*> _severeMap;
71
72
        static std::map<int32, std::string*> _zrtpMap;
72
73
        static bool _mapInitialized;
73
 
    };
 
74
};
74
75
}
75
76
#endif