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 INT_SET(bps,_bps);
00057 INT_SET(login,_login);
00058 CHAR_SET(name,_name);
00059 CHAR_SET(url,_url);
00060 CHAR_SET(desc,_desc);
00061 int format;
00062
00063 bool start();
00064 bool stop();
00065 int send(short int *buf, unsigned int enc);
00066
00067 bool running;
00068 time_t retry;
00069
00070 bool apply_profile();
00071 bool profile_changed;
00072
00073 };
00074
00075
00076 #endif