00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00032
00033 #ifdef ATRAILERS
00034
00035 #ifndef __ATRAILERS_SERVICE_H__
00036 #define __ATRAILERS_SERVICE_H__
00037
00038 #include "zmm/zmm.h"
00039 #include "mxml/mxml.h"
00040 #include "online_service.h"
00041 #include "url.h"
00042 #include <curl/curl.h>
00043
00044
00045
00048 class ATrailersService : public OnlineService
00049 {
00050 public:
00051 ATrailersService();
00052 ~ATrailersService();
00055 virtual bool refreshServiceData(zmm::Ref<Layout> layout);
00056
00058 virtual service_type_t getServiceType();
00059
00061 virtual zmm::String getServiceName();
00062
00065 virtual zmm::Ref<zmm::Object> defineServiceTask(zmm::Ref<mxml::Element> xmlopt, zmm::Ref<zmm::Object> params);
00066
00067 protected:
00068
00069 CURL *curl_handle;
00070
00071 pthread_t pid;
00072
00073 zmm::String service_url;
00074
00075
00076 zmm::Ref<URL> url;
00077
00079 zmm::Ref<mxml::Element> getData();
00080 };
00081
00082 #endif//__ONLINE_SERVICE_H__
00083
00084 #endif//WEBORAMA