File indexing completed on 2025-01-19 03:55:38

0001 #ifndef O1FRESHBOOKS_H
0002 #define O1FRESHBOOKS_H
0003 
0004 #include "o0export.h"
0005 #include "o1.h"
0006 
0007 /// FreshBooks authenticator.
0008 class O0_EXPORT O1Freshbooks: public O1 {
0009     Q_OBJECT
0010 
0011 public:
0012     explicit O1Freshbooks(QObject *parent = 0): O1(parent) {
0013     }
0014 
0015     void setClientId(const QString &value) {
0016         O1::setClientId(value);
0017         setRequestTokenUrl(QUrl("https://" + clientId() + ".freshbooks.com/oauth/oauth_request.php"));
0018         setAuthorizeUrl(QUrl("https://" + clientId() + ".freshbooks.com/oauth/oauth_authorize.php"));
0019         setAccessTokenUrl(QUrl("https://" + clientId() + ".freshbooks.com/oauth/oauth_access.php"));
0020     }
0021 };
0022 
0023 #endif // O1FRESHBOOKS_H