00001 #ifndef EDG_WORKLOAD_USERINTERFACE_CLIENT_USERJOBS_H
00002 #define EDG_WORKLOAD_USERINTERFACE_CLIENT_USERJOBS_H
00003
00004
00005
00006
00007
00008
00009
00010 #include "edg/workload/userinterface/client/Job.h"
00011 #include <list>
00012
00013 namespace classad {
00014 class ClassAd ;
00015 }
00016 namespace edg{
00017 namespace workload{
00018 namespace common{
00019 namespace jobid {
00020 class JobId ;
00021 }
00022 }
00023 }
00024 }
00025 USERINTERFACE_NAMESPACE_BEGIN
00026 #define UJ_CANCEL_ERR -1
00027
00038 class UserJobs{
00039 public:
00040
00044 UserJobs () ;
00046 ~UserJobs ();
00049 UserJobs (const std::string cred_path) ;
00051
00054
00060 void getJobs ( const std::string& lbHost, int lbPort, std::vector<edg::workload::common::jobid::JobId> &jobs ) ;
00061
00066 void getStatus (const std::string& lbHost , int lbPort , std::vector <edg::workload::logging::client::JobStatus> &jobsStatus) ;
00068
00069 private:
00070 UserCredential uc ;
00071 std::string cred_path ;
00072
00073 };
00074 USERINTERFACE_NAMESPACE_END }
00075 #endif