Go to the documentation of this file.00001 #ifndef LIBRMS_SLOT_HPP_
00002 #define LIBRMS_SLOT_HPP_
00003
00004 #include <string>
00005 #include <rms/rms.hpp>
00006 #include "appointment.hpp"
00007
00008 namespace librms
00009 {
00010
00011 class rms;
00012 class appointment;
00013
00014 class slot
00015 {
00016 public:
00017 slot(librms::rms *client, unsigned int id, unsigned int condition_id, std::string start, std::string end, std::string created, std::string modified);
00018
00019 ~slot();
00020
00021 unsigned int get_id() const;
00022
00023 unsigned int get_condition_id() const;
00024
00025 std::string get_start() const;
00026
00027 std::string get_end() const;
00028
00029 std::string get_created() const;
00030
00031 std::string get_modified() const;
00032
00033 bool has_appointment();
00034
00035 librms::appointment &get_appointment();
00036
00037 private:
00038 std::string start_, end_, created_, modified_;
00039 unsigned int id_, condition_id_;
00040 bool appointment_checked_, has_appointment_, appointment_fetched_;
00041 librms::rms *client_;
00042 librms::appointment *appointment_;
00043 };
00044
00045 }
00046
00047 #endif