00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __SHOUTER_H__
00023 #define __SHOUTER_H__
00024
00025 extern "C" {
00026 #include "shout/shout.h"
00027 }
00028
00029 #include <linklist.h>
00030 #include <jutils.h>
00031
00032 #define ERRORMSG 128
00033 #define RETRY_DELAY 600
00034 #define MAX_VALUE_SIZE 512
00035
00036 class Shouter : public Entry {
00037 private:
00038 shout_t *ice;
00039
00040 int errors;
00041
00042 public:
00043 Shouter();
00044 ~Shouter();
00045
00046
00047
00048
00049
00050 CHAR_SET(ip,_ip);
00051 CHAR_SET(host,_host);
00052 char streamurl[MAX_VALUE_SIZE];
00053 INT_SET(port,_port);
00054 CHAR_SET(pass,_pass);
00055 CHAR_SET(mount,_mount);
00056
00057
00058 CHAR_SET(bps,_bps);
00059 CHAR_SET(freq,_freq);
00060 CHAR_SET(channels,_channels);
00061
00062 INT_SET(login,_login);
00063 CHAR_SET(name,_name);
00064 CHAR_SET(url,_url);
00065 CHAR_SET(desc,_desc);
00066 int format;
00067
00068 bool start();
00069 bool stop();
00070 int send(short int *buf, unsigned int enc);
00071
00072 bool running;
00073 time_t retry;
00074
00075 bool apply_profile();
00076 bool profile_changed;
00077
00078 };
00079
00080
00081 #endif