testhelper.h 547 B

12345678910111213141516171819202122232425262728
  1. #ifndef TESTHELPER_H
  2. #define TESTHELPER_H
  3. #include "folder.h"
  4. #include "creds/httpcredentials.h"
  5. using namespace OCC;
  6. class HttpCredentialsTest : public HttpCredentials {
  7. public:
  8. HttpCredentialsTest(const QString& user, const QString& password)
  9. : HttpCredentials(user, password)
  10. {}
  11. void askFromUser() Q_DECL_OVERRIDE {
  12. }
  13. };
  14. static FolderDefinition folderDefinition(const QString &path) {
  15. FolderDefinition d;
  16. d.localPath = path;
  17. d.targetPath = path;
  18. d.alias = path;
  19. return d;
  20. }
  21. #endif // TESTHELPER_H