Skip to content

Commit

Permalink
Cloud Refactor - Add Default URL to Settings
Browse files Browse the repository at this point in the history
.. for services that let users change the URL, we offer up
   a default value.
  • Loading branch information
liversedge committed Mar 27, 2017
1 parent fdd8712 commit 9568dba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cloud/CloudService.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class CloudService : public QObject {
// with the settings applied back into the service when it is cloned -- this would
// then allow multiple accounts for the same service, but for now its strictly
// one account for one service.
enum CloudServiceSetting { Username, Password, OAuthToken, Key, URL, Folder } setting_;
enum CloudServiceSetting { Username, Password, OAuthToken, Key, URL, DefaultURL, Folder } setting_;
QHash<CloudServiceSetting, QString> settings;

// we use a dirent style API for traversing
Expand Down
1 change: 1 addition & 0 deletions src/Cloud/SixCycle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ SixCycle::SixCycle(Context *context) : CloudService(context), context(context),
settings.insert(Username, GC_SIXCYCLE_USER);
settings.insert(Password, GC_SIXCYCLE_PASS);
settings.insert(URL, GC_SIXCYCLE_URL);
settings.insert(DefaultURL, "https://live.sixcycle.com");
}

SixCycle::~SixCycle() {
Expand Down
1 change: 1 addition & 0 deletions src/Cloud/TodaysPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ TodaysPlan::TodaysPlan(Context *context) : CloudService(context), context(contex
// config
settings.insert(OAuthToken, GC_TODAYSPLAN_TOKEN);
settings.insert(URL, GC_TODAYSPLAN_URL);
settings.insert(DefaultURL, "https://whats.todaysplan.com.au");
settings.insert(Key, GC_TODAYSPLAN_USERKEY);
}

Expand Down

0 comments on commit 9568dba

Please sign in to comment.