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

« back to all changes in this revision

Viewing changes to sflphone-common/src/eventthread.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
 *  Emmanuel Milou <emmanuel.milou@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.
33
33
 
34
34
#include <cc++/thread.h>
35
35
 
 
36
 
36
37
class VoIPLink;
37
38
class AlsaLayer;
38
39
 
41
42
 * @brief General thread to listen events continuously
42
43
 */
43
44
 
44
 
class EventThread : public ost::Thread {
 
45
class EventThread : public ost::Thread
 
46
{
45
47
 
46
48
    public:
47
49
        /**
48
 
         * Thread constructor 
 
50
         * Thread constructor
49
51
         */
50
 
        EventThread (VoIPLink* link);        
51
 
        
52
 
        ~EventThread (void){
 
52
        EventThread (VoIPLink* link);
 
53
 
 
54
        ~EventThread (void) {
53
55
            terminate();
54
56
        }
55
 
        
 
57
 
56
58
        virtual void run () ;
57
 
        
 
59
 
58
60
    private:
59
 
        EventThread(const EventThread& rh); // copy constructor
60
 
        EventThread& operator=(const EventThread& rh);  // assignment operator  
 
61
        EventThread (const EventThread& rh); // copy constructor
 
62
        EventThread& operator= (const EventThread& rh); // assignment operator
61
63
 
62
64
        /** VoIPLink is the object being called by getEvents() method  */
63
65
        VoIPLink*       _linkthread;
64
66
};
65
67
 
66
 
class AudioThread : public ost::Thread {
 
68
class AudioThread : public ost::Thread
 
69
{
67
70
 
68
71
    public:
69
72
        AudioThread (AlsaLayer *alsa);
70
73
 
71
 
        ~AudioThread (void){
 
74
        ~AudioThread (void) {
72
75
            terminate();
73
76
        }
74
77
 
76
79
 
77
80
    private:
78
81
        AudioThread (const AudioThread& at);
79
 
        AudioThread& operator=(const AudioThread& at);
 
82
        AudioThread& operator= (const AudioThread& at);
80
83
 
81
84
        AlsaLayer* _alsa;
82
85
};