| Config.h | | Config.h | |
| | | | |
| skipping to change at line 101 | | skipping to change at line 101 | |
| * Set the API key to be used for all API requests. This MUST be se
t in order | | * Set the API key to be used for all API requests. This MUST be se
t in order | |
| * for any web service calls to work! | | * for any web service calls to work! | |
| */ | | */ | |
| void setAPIKey( const QByteArray& apiKey ); | | void setAPIKey( const QByteArray& apiKey ); | |
| QByteArray apiKey() const; | | QByteArray apiKey() const; | |
| | | | |
| /** | | /** | |
| * Set the QNetworkAccessManager to use to make web service request
s to | | * Set the QNetworkAccessManager to use to make web service request
s to | |
| * The Echo Nest. | | * The Echo Nest. | |
| * | | * | |
|
| | | * This will register the given QNAM for the current thread. If you | |
| | | call this from | |
| | | * the main thread and only make calls to libechonest from the mai | |
| | | n thread, you don't | |
| | | * have to do any more work. However, if you are using multiple QN | |
| | | AMs in different threads, | |
| | | * you must call this for each QNAM in each thread so that libecho | |
| | | nest can use the proper | |
| | | * thread-local QNAM. This function is thread-safe. | |
| | | * | |
| | | * Note that in all threads, if you do not set a QNAM, a default on | |
| | | e is created and returned. | |
| | | * In addition, if you set your own QNAM, you are responsible for | |
| | | deleting it. | |
| | | * | |
| * This will take over control of the object. | | * This will take over control of the object. | |
| */ | | */ | |
| void setNetworkAccessManager( QNetworkAccessManager* nam ); | | void setNetworkAccessManager( QNetworkAccessManager* nam ); | |
| QNetworkAccessManager* nam() const; | | QNetworkAccessManager* nam() const; | |
| | | | |
| private: | | private: | |
| Config(); | | Config(); | |
| ~Config(); | | ~Config(); | |
| | | | |
| static Config* s_instance; | | static Config* s_instance; | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 15 lines changed or added | |
|