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

« back to all changes in this revision

Viewing changes to sflphone-common/src/dbus/instance.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:
1
1
/*
2
2
 *  Copyright (C) 2004, 2005, 2006, 2009, 2008, 2009, 2010 Savoir-Faire Linux Inc.
3
3
 *  Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
4
 
 *                                                                              
 
4
 *
5
5
 *  This program is free software; you can redistribute it and/or modify
6
6
 *  it under the terms of the GNU General Public License as published by
7
7
 *  the Free Software Foundation; either version 3 of the License, or
8
8
 *  (at your option) any later version.
9
 
 *                                                                                
 
9
 *
10
10
 *  This program is distributed in the hope that it will be useful,
11
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
13
 *  GNU General Public License for more details.
14
 
 *                                                                              
 
14
 *
15
15
 *  You should have received a copy of the GNU General Public License
16
16
 *  along with this program; if not, write to the Free Software
17
17
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 INSTANCE_H
32
32
#define INSTANCE_H
33
33
 
 
34
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
 
35
#pragma GCC diagnostic ignored "-Wunused-parameter"
34
36
#include "instance-glue.h"
 
37
#pragma GCC diagnostic warning "-Wignored-qualifiers"
 
38
#pragma GCC diagnostic warning "-Wunused-parameter"
35
39
#include <dbus-c++/dbus.h>
36
40
 
37
 
    
 
41
 
38
42
class Instance
39
 
: public org::sflphone::SFLphone::Instance_adaptor,
 
43
    : public org::sflphone::SFLphone::Instance_adaptor,
40
44
  public DBus::IntrospectableAdaptor,
41
45
  public DBus::ObjectAdaptor
42
46
{
43
 
private:
44
 
  int count;
45
 
 
46
 
public:
47
 
  Instance(DBus::Connection& connection);
48
 
  static const char* SERVER_PATH;
49
 
  
50
 
  void Register( const int32_t& pid, const std::string& name ); 
51
 
  void Unregister( const int32_t& pid );
52
 
  int32_t getRegistrationCount( void );
53
 
    
 
47
    private:
 
48
        int count;
 
49
 
 
50
    public:
 
51
        Instance (DBus::Connection& connection);
 
52
        static const char* SERVER_PATH;
 
53
 
 
54
        void Register (const int32_t& pid, const std::string& name);
 
55
        void Unregister (const int32_t& pid);
 
56
        int32_t getRegistrationCount (void);
 
57
 
54
58
};
55
59
 
56
60