-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re #77 started to work on the issue, we wil have for that an admin pa…
…nel, for the moment added only the auto-generated code
- Loading branch information
1 parent
872ce97
commit 13c5834
Showing
5 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* Tatoeba wiki Wiki made with cppcmsskel | ||
* | ||
* Copyright (C) 2013 Allan SIMON <[email protected]> | ||
* See accompanying file COPYING.TXT file for licensing details. | ||
* | ||
* @category Tatoeba wiki | ||
* @package Contents | ||
* @author Allan SIMON <[email protected]> | ||
* @link https://github.com/allan-simon/tatowiki | ||
*/ | ||
|
||
#ifndef TATOWIKI_CONTENTS_ADMIN_H | ||
#define TATOWIKI_CONTENTS_ADMIN_H | ||
|
||
#include "cppcms_skel/contents/content.h" | ||
|
||
//%%%NEXT_CONTENT_FORM_INCLUDE_MARKER%%% | ||
|
||
namespace contents { | ||
namespace admin { | ||
|
||
/** | ||
* @class Admin | ||
* @brief Base content for every action of Admin controller | ||
* @since 10 August 2013 | ||
*/ | ||
struct Admin : public BaseContent { | ||
}; | ||
|
||
//%%%NEXT_CONTENT_MARKER%%% | ||
|
||
} // end of namespace admin | ||
} //end of namespace contents | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* Tatoeba wiki Wiki made with cppcmsskel | ||
* | ||
* Copyright (C) 2012 Allan SIMON <[email protected]> | ||
* See accompanying file COPYING.TXT file for licensing details. | ||
* | ||
* @category Tatoeba wiki | ||
* @package Controllers | ||
* @author Allan SIMON <[email protected]> | ||
* @link https://github.com/allan-simon/tatowiki | ||
*/ | ||
|
||
#include <cppcms/session_interface.h> | ||
#include "Admin.h" | ||
|
||
|
||
#include "contents/Admin.h" | ||
|
||
//%%%NEXT_INC_MODEL_CTRL_MARKER%%% | ||
|
||
|
||
namespace controllers { | ||
namespace webs { | ||
|
||
Admin::Admin(cppcms::service& serv) : | ||
controllers::webs::Controller(serv) | ||
{ | ||
|
||
//%%%NEXT_ACTION_DISPATCHER_MARKER%%%, do not delete | ||
|
||
//%%%NEXT_NEW_MODEL_CTRL_MARKER%%% | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
Admin::~Admin() { | ||
//%%%NEXT_DEL_MODEL_CTRL_MARKER%%% | ||
} | ||
|
||
// %%%NEXT_ACTION_MARKER%%% , do not delete | ||
|
||
|
||
|
||
|
||
} // End namespace webs | ||
} // End namespace controllers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* Tatoeba wiki Wiki made with cppcmsskel | ||
* | ||
* Copyright (C) 2012 Allan SIMON <[email protected]> | ||
* See accompanying file COPYING.TXT file for licensing details. | ||
* | ||
* @category Tatoeba wiki | ||
* @package Controllers | ||
* @author Allan SIMON <[email protected]> | ||
* @link https://github.com/allan-simon/tatowiki | ||
*/ | ||
|
||
#ifndef TATOWIKICONTROLLERS_WEBS_ADMIN_H | ||
#define TATOWIKICONTROLLERS_WEBS_ADMIN_H | ||
|
||
#include "cppcms_skel/controllers/webs/Controller.h" | ||
|
||
|
||
//needed to avoid to include models directly here, | ||
//which would have the side effects to require to recompile the | ||
// controller every time we modify a model. even though it does | ||
// not affect the controller | ||
namespace models { | ||
// %%%NEXT_CLASS_MODEL_CTRL_MARKER%%% | ||
} | ||
|
||
namespace controllers { | ||
namespace webs { | ||
/** | ||
* @class Admin @TODO add a description | ||
* @since 10 August 2013 | ||
*/ | ||
class Admin : public Controller { | ||
public: | ||
/** | ||
* @brief Constructor | ||
* @since 10 August 2013 | ||
*/ | ||
Admin(cppcms::service &serv); | ||
|
||
/** | ||
* @brief Destructor | ||
* @since 10 August 2013 | ||
*/ | ||
~Admin(); | ||
|
||
private: | ||
// %%%NEXT_VAR_MODEL_CTRL_MARKER%%% | ||
|
||
// %%%NEXT_ACTION_MARKER%%% , do not delete | ||
|
||
}; | ||
|
||
} // End namespace webs | ||
} // End namespace controllers | ||
|
||
#endif |