00001 // 00002 // plumbing - C++ wrapper facades for Berkeley sockets 00003 // Copyright (C) 2009 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify it 00006 // under the terms of the GNU General Public License, version 3, as published 00007 // by the Free Software Foundation. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT 00010 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00012 // more details. 00013 // 00014 // You should have received a copy of the GNU General Public License along 00015 // with this program. If not, see <http://www.gnu.org/licenses/>. 00016 // 00017 00018 #ifndef LIBPLUMBING_AT_JOB_H 00019 #define LIBPLUMBING_AT_JOB_H 00020 00021 #include <libplumbing/time_value.h> 00022 00023 namespace plumbing { 00024 00025 class at_service; // forward 00026 00032 class at_job 00033 { 00034 public: 00038 virtual ~at_job(); 00039 00040 protected: 00045 at_job(); 00046 00047 public: 00054 void death_subscribe(at_service *sp); 00055 00060 virtual void process() = 0; 00061 00067 void unregister(); 00068 00069 private: 00075 at_service *death_subscriber; 00076 00080 at_job(const at_job &); 00081 00085 at_job &operator=(const at_job &); 00086 }; 00087 00088 } 00089 00090 #endif // LIBPLUMBING_AT_JOB_H 00091 // vim: set ts=4 et