~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to programs/mythbackend/mainserver.h

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-09-08 23:08:37 UTC
  • mfrom: (1.1.32 upstream)
  • Revision ID: james.westby@ubuntu.com-20090908230837-zrm2j6wutp76hwso
Tags: 0.22.0~trunk21742-0ubuntu1
* New upstream checkout (21742)
  - Fixes FTBFS on PPC. See changeset 21571 for more details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef MAINSERVER_H_
2
2
#define MAINSERVER_H_
3
3
 
4
 
#include <qmap.h>
5
 
#include <qtimer.h>
6
 
#include <qmutex.h>
7
 
#include <qdom.h>
 
4
#include <QMap>
 
5
#include <QTimer>
 
6
#include <QMutex>
 
7
#include <QReadWriteLock>
8
8
#include <QEvent>
9
9
 
10
10
#include <vector>
20
20
#include "mythsocket.h"
21
21
#include "mythdeque.h"
22
22
 
 
23
#ifdef DeleteFile
 
24
#undef DeleteFile
 
25
#endif
 
26
 
23
27
class ProcessRequestThread;
24
28
class QUrl;
25
29
class MythServer;
155
159
    void getGuideDataThrough(QDateTime &GuideDataThrough);
156
160
 
157
161
    PlaybackSock *getSlaveByHostname(QString &hostname);
158
 
    PlaybackSock *getPlaybackBySock(MythSocket *socket);
159
 
    FileTransfer *getFileTransferByID(int id);
160
 
    FileTransfer *getFileTransferBySock(MythSocket *socket);
 
162
    PlaybackSock *GetPlaybackBySock(MythSocket *socket);
 
163
    FileTransfer *GetFileTransferByID(int id);
 
164
    FileTransfer *GetFileTransferBySock(MythSocket *socket);
161
165
 
162
166
    QString LocalFilePath(const QUrl &url, const QString wantgroup);
163
167
 
189
193
 
190
194
    MythServer *mythserver;
191
195
 
192
 
    QMutex sockListLock;
 
196
    QReadWriteLock sockListLock;
193
197
    vector<PlaybackSock *> playbackList;
194
198
    vector<FileTransfer *> fileTransferList;
195
199
 
201
205
    QMutex deletelock;
202
206
    QMutex threadPoolLock;
203
207
    QWaitCondition threadPoolCond;
204
 
    vector<ProcessRequestThread *> threadPool;
 
208
    MythDeque<ProcessRequestThread *> threadPool;
205
209
 
206
210
    bool masterBackendOverride;
207
211
 
208
212
    Scheduler *m_sched;
209
213
    AutoExpire *m_expirer;
210
214
 
211
 
    QMutex readReadyLock;
212
 
 
213
215
    struct DeferredDeleteStruct
214
216
    {
215
217
        PlaybackSock *sock;