~ubuntu-branches/ubuntu/saucy/resiprocate/saucy-proposed

« back to all changes in this revision

Viewing changes to b2bua/AccountingManager.hxx

  • Committer: Package Import Robot
  • Author(s): Daniel Pocock
  • Date: 2012-05-17 19:29:59 UTC
  • Revision ID: package-import@ubuntu.com-20120517192959-vv00m77isztdy64q
Tags: upstream-1.8.2
ImportĀ upstreamĀ versionĀ 1.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef __AccountingManager_h
 
3
#define __AccountingManager_h
 
4
 
 
5
 
 
6
#include "rutil/Data.h"
 
7
 
 
8
namespace b2bua
 
9
{
 
10
 
 
11
class AccountingManager {
 
12
 
 
13
public:
 
14
  // Call has entered system
 
15
  virtual void onCallStart() = 0;
 
16
  // Call has been authorised
 
17
  virtual void onCallAuthorise() = 0;
 
18
  // Call has connected
 
19
  virtual void onCallConnect() = 0;
 
20
  // A route has failed
 
21
  virtual void onCallRouteFail() = 0;
 
22
  // All routes have been tried and failed, or the call was not authorised
 
23
  virtual void onCallFail() = 0;
 
24
  // The call connected and completed successfully
 
25
  virtual void onCallFinish() = 0;
 
26
};
 
27
 
 
28
}
 
29
 
 
30
#endif
 
31
 
 
32
/* ====================================================================
 
33
 *
 
34
 * Copyright 2012 Daniel Pocock.  All rights reserved.
 
35
 *
 
36
 * Redistribution and use in source and binary forms, with or without
 
37
 * modification, are permitted provided that the following conditions
 
38
 * are met:
 
39
 *
 
40
 * 1. Redistributions of source code must retain the above copyright
 
41
 *    notice, this list of conditions and the following disclaimer.
 
42
 *
 
43
 * 2. Redistributions in binary form must reproduce the above copyright
 
44
 *    notice, this list of conditions and the following disclaimer in
 
45
 *    the documentation and/or other materials provided with the
 
46
 *    distribution.
 
47
 *
 
48
 * 3. Neither the name of the author(s) nor the names of any contributors
 
49
 *    may be used to endorse or promote products derived from this software
 
50
 *    without specific prior written permission.
 
51
 *
 
52
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
 
53
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
54
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
55
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
 
56
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
57
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 
58
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 
59
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 
60
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 
61
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 
62
 * SUCH DAMAGE.
 
63
 *
 
64
 * ====================================================================
 
65
 *
 
66
 *
 
67
 */
 
68