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

« back to all changes in this revision

Viewing changes to tfm/CheckFetchedContacts.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
#if !defined(TFM_CheckFetchedContacts_hxx)
 
2
#define TFM_CheckFetchedContacts_hxx
 
3
 
 
4
#include <set>
 
5
#include "resip/stack/NameAddr.hxx"
 
6
#include "tfm/ExpectAction.hxx"
 
7
 
 
8
//ignores expires
 
9
class CheckFetchedContacts : public ExpectAction
 
10
{
 
11
   public:
 
12
      CheckFetchedContacts(std::set<resip::NameAddr> contacts);
 
13
      bool compareContacts(const resip::NameAddr & s1, const resip::NameAddr & s2);
 
14
 
 
15
      using ExpectAction::operator();
 
16
      virtual void operator()(boost::shared_ptr<Event> event);
 
17
   private:
 
18
      std::set<resip::NameAddr> _contacts;
 
19
};
 
20
 
 
21
#endif
 
22
/*
 
23
  Copyright (c) 2005, PurpleComm, Inc. 
 
24
  All rights reserved.
 
25
 
 
26
  Redistribution and use in source and binary forms, with or without modification,
 
27
  are permitted provided that the following conditions are met:
 
28
 
 
29
  * Redistributions of source code must retain the above copyright notice, this
 
30
    list of conditions and the following disclaimer.
 
31
  * Redistributions in binary form must reproduce the above copyright notice,
 
32
    this list of conditions and the following disclaimer in the documentation
 
33
    and/or other materials provided with the distribution.
 
34
  * Neither the name of PurpleComm, Inc. nor the names of its contributors may
 
35
    be used to endorse or promote products derived from this software without
 
36
    specific prior written permission.
 
37
 
 
38
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 
39
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
40
  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 
41
  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
 
42
  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
43
  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 
44
  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 
45
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 
46
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
47
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
48
*/