~ubuntu-branches/ubuntu/maverick/bluedevil/maverick-proposed

« back to all changes in this revision

Viewing changes to src/daemon/kded/agentlistener.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-08-07 09:04:19 UTC
  • Revision ID: james.westby@ubuntu.com-20100807090419-68k54ucso2htcf5z
Tags: upstream-1.0~rc2
ImportĀ upstreamĀ versionĀ 1.0~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2010 Alejandro Fiestas Olivares <alex@eyeos.org>        *
 
3
 *   Copyright (C) 2010 Eduardo Robles Elvira <edulix@gmail.com>           *
 
4
 *   Copyright (C) 2010 UFO Coders <info@ufocoders.com>                    *
 
5
 *                                                                         *
 
6
 *   This program is free software; you can redistribute it and/or modify  *
 
7
 *   it under the terms of the GNU General Public License as published by  *
 
8
 *   the Free Software Foundation; either version 2 of the License, or     *
 
9
 *   (at your option) any later version.                                   *
 
10
 *                                                                         *
 
11
 *   This program is distributed in the hope that it will be useful,       *
 
12
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
13
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
14
 *   GNU General Public License for more details.                          *
 
15
 *                                                                         *
 
16
 *   You should have received a copy of the GNU General Public License     *
 
17
 *   along with this program; if not, write to the                         *
 
18
 *   Free Software Foundation, Inc.,                                       *
 
19
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
 
20
 ***************************************************************************/
 
21
 
 
22
#ifndef AGENTLISTENER_H
 
23
#define AGENTLISTENER_H
 
24
 
 
25
#include <QThread>
 
26
#include "agentlistenerworker.h"
 
27
 
 
28
/**
 
29
 * @internal
 
30
 * @short This class is only a delegate to be able to use agentlistener on a QThread (We can't inherit
 
31
 *        from 2 QObjects
 
32
 * This class is only a delegate to be able to use agentlistener on a QThread (We can't inherit
 
33
 * from 2 QObjects, so we had to create a new Class only to do the threading stuff
 
34
 * @ref AgentListenerWorker
 
35
 * @since 1.0
 
36
 */
 
37
class AgentListener : public QThread
 
38
{
 
39
 
 
40
Q_OBJECT
 
41
public:
 
42
    AgentListener();
 
43
    virtual ~AgentListener();
 
44
Q_SIGNALS:
 
45
    void agentReleased();
 
46
 
 
47
protected:
 
48
    virtual void run();
 
49
 
 
50
private:
 
51
    AgentListenerWorker *m_worker;
 
52
};
 
53
 
 
54
 
 
55
#endif // AGENTLISTENER_H