diff --git a/3rdparty/o2/src/o1freshbooks.h b/3rdparty/o2/src/o1freshbooks.h new file mode 100755 index 0000000000000000000000000000000000000000..e93fc8df852fc3af564bd1306682ce10b2baa456 --- /dev/null +++ b/3rdparty/o2/src/o1freshbooks.h @@ -0,0 +1,26 @@ +#ifndef O1FRESHBOOKS_H +#define O1FRESHBOOKS_H + +#include "o1.h" + +class O1Freshbooks: public O1 { + Q_OBJECT + +public: + explicit O1Freshbooks(QObject *parent = 0): O1(parent) + { + } + + void setClientId(const QString &value) + { + O1::setClientId(value); + + setRequestTokenUrl(QUrl("https://" + clientId() + ".freshbooks.com/oauth/oauth_request.php")); + setAuthorizeUrl(QUrl("https://" + clientId() + ".freshbooks.com/oauth/oauth_authorize.php")); + setAccessTokenUrl(QUrl("https://" + clientId() + ".freshbooks.com/oauth/oauth_access.php")); + } + + +}; + +#endif // O1FRESHBOOKS_H