~ubuntu-branches/ubuntu/precise/crtmpserver/precise-backports

« back to all changes in this revision

Viewing changes to applications/proxypublish/include/jobstimerprotocol.h

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2012-07-04 00:04:40 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20120704000440-u9x7yhyglqjvspk8
Tags: 1.0~dfsg-3~ubuntu12.04.1
No-change backport to precise (LP: #964153)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 *  Copyright (c) 2010,
 
3
 *  Gavriloaie Eugen-Andrei (shiretu@gmail.com)
 
4
 *
 
5
 *  This file is part of crtmpserver.
 
6
 *  crtmpserver 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 3 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  crtmpserver 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 crtmpserver.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef _JOBSTIMERPROTOCOL_H
 
21
#define _JOBSTIMERPROTOCOL_H
 
22
 
 
23
#include "protocols/timer/basetimerprotocol.h"
 
24
 
 
25
namespace app_proxypublish {
 
26
 
 
27
        class JobsTimerProtocol
 
28
        : public BaseTimerProtocol {
 
29
        private:
 
30
                vector<Variant> _pushQueue;
 
31
                vector<Variant> _pullQueue;
 
32
        public:
 
33
                JobsTimerProtocol();
 
34
                virtual ~JobsTimerProtocol();
 
35
 
 
36
                virtual bool TimePeriodElapsed();
 
37
 
 
38
                void EnqueuePush(Variant &push);
 
39
                void EnqueuePull(Variant &pull);
 
40
        private:
 
41
                void DoPulls();
 
42
                void DoPushes();
 
43
        };
 
44
 
 
45
}
 
46
 
 
47
 
 
48
#endif  /* _JOBSTIMERPROTOCOL_H */
 
49