S_New4/programManager.h

33 lines
797 B
C
Raw Normal View History

2019-07-06 18:47:29 +00:00
#ifndef MANAGEPROGRAM_H
#define MANAGEPROGRAM_H
#include "parameterManager.h"
#include "pageManager.h"
#include "accountManager.h"
2019-07-07 16:30:37 +00:00
#include <unistd.h>
2019-07-06 18:47:29 +00:00
2019-08-03 19:48:27 +00:00
#include <sys/types.h>
#include <dirent.h>
2019-07-06 18:47:29 +00:00
class ProgramManager
{
public:
ProgramManager();
~ProgramManager();
2019-08-11 17:15:33 +00:00
int start(Settings *setting);
2019-08-03 19:48:27 +00:00
int listDir(std::string &list, std::string path, int maxDepth);
2019-07-06 18:47:29 +00:00
private:
int defaultModus(Settings * settings);
int directLinkModus(Settings * settings);
int searchModus(Settings * settings);
2019-07-06 18:47:29 +00:00
PageManager pageManager;
int convertLink(std::string redirectLink, AccountManager *accountManager, Settings * settings, int Staffel = -1, int Folge = -1, std::string allLinks = "NOT_EMPTY");
2019-08-03 19:48:27 +00:00
int searchModus_update(Settings * settings);
2019-07-06 18:47:29 +00:00
};
#endif // MANAGEPROGRAM_H