// // aegis - project change supervisor // Copyright (C) 2004-2006, 2008, 2014 Peter Miller // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or (at // your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // #ifndef AECVSSERVER_RESPONSE_CREATED_H #define AECVSSERVER_RESPONSE_CREATED_H #include #include /** * The response_created class is used to represent */ class response_created: public response { public: /** * The destructor. */ virtual ~response_created(); /** * The constructor. * * @param client_side * The name of the file being sent to the client, relative to the * client's current directory. * @param server_side * The name of the file, relative to the server root (so it includes * the module name) being sent to the client. * @param source * The input to be read to get the content of the file. This will * be closed once the request is sent to the client. * @param mode * The file mode for the file. * @param * The current version of the file. */ response_created(string_ty *client_side, string_ty *server_side, const input::pointer &source, int mode, string_ty *version); // See base class for documentation. void write(output::pointer op); // See base class for documentation. response_code_ty code_get(void) const; // See base class for documentation. bool flushable(void) const; private: string_ty *client_side; string_ty *server_side; input::pointer source; int mode; string_ty *version; /** * The default constructor. */ response_created(); /** * The copy constructor. Do not use. */ response_created(const response_created &); /** * The assignment operator. Do not use. */ response_created &operator=(const response_created &); }; #endif // AECVSSERVER_RESPONSE_CREATED_H // vim: set ts=8 sw=4 et :