1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
/*****************************************************************************
* program.h : SAP programs classes definition
****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
* $Id: program.h 345 2009-01-11 19:50:41Z courmisch $
*
* Authors: Damien Lucas <nitrox@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
class Program
{
public:
Program(string, string, string, string, string, uint16_t);
Program();
~Program();
/* Functions to get the values */
string GetName();
string GetUser();
string GetMachine();
string GetSite();
string GetAddress();
uint16_t GetPort();
string GetTTL();
string GetPlGroup();
/* Functions to set the values */
void SetName(const char*);
void SetUser(const char*);
void SetMachine(const char*);
void SetSite(const char*);
void SetAddress(const char*);
void SetPort(uint16_t);
void SetTTL(const char *);
void SetPlGroup(const char *);
void SetHasPlGroup(bool);
void SetRTP(bool);
bool IsPermanent();
bool IsRTP();
bool HasPlGroup();
private:
string name;
string user;
string machine;
string site;
string address;
string program_ttl;
string pl_group;
bool permanent;
bool b_rtp;
bool b_has_pl_group;
uint16_t port;
uint32_t start_time;
uint32_t stop_time;
/* TODO support for periodical programs */
};
|