Fork de wikipp, le moteur de wiki en c++, basé sur cppcms. Le fork ajoute la langue française
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

options.h 684B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef OPTIONS_H
  2. #define OPTIONS_H
  3. #include "master.h"
  4. #include <cppcms/json.h>
  5. #include <cppcms/serialization_classes.h>
  6. namespace apps {
  7. struct global_options : public cppcms::serializable {
  8. int users_only_edit;
  9. std::string contact;
  10. void serialize(cppcms::archive &a);
  11. };
  12. struct locale_options : public cppcms::serializable{
  13. std::string title;
  14. std::string about;
  15. std::string copyright;
  16. void serialize(cppcms::archive &a);
  17. };
  18. class options : public master {
  19. bool loaded;
  20. protected:
  21. void edit();
  22. public:
  23. void reset();
  24. options(apps::wiki &);
  25. void load();
  26. void save();
  27. std::string edit_url();
  28. global_options global;
  29. locale_options local;
  30. };
  31. } // apps;
  32. #endif