Skip to content

Commit

Permalink
Current state
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghus committed Aug 28, 2019
1 parent e8cfd8f commit 76b5bb5
Show file tree
Hide file tree
Showing 53 changed files with 24,122 additions and 565 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Better error handling and notifications.
- Update currency model.
- Moves from homegrown settings class to Nemo.Configuration.
- Change cover refresh icon to a more suitable one.

0.2
- Add settings for number of decimals to show in the result.
Expand Down
8 changes: 0 additions & 8 deletions TODO

This file was deleted.

33 changes: 33 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Currency Converter TODO:
## Installed
* List of countries as JSON

## On first load:
* Load and parse list of available countries
* Save as LocalStorage in user space.
* Load and parse list of available currencies
* Save as LocalStorage in user space.

### Requirements:
* Methods to:
* Look up currency name based on currency code (and save to db if needed?)
* Look up rate from said currency - implemented
* Look up country code from currency code. For flags

## Different providers:
* Separate Storage for providers
* Interpolate query parameters into URL
* Setting for refresh rates
* API key

Table "countries"

Table "providers"
* int: id
* string: displayName
* string: URL including variables
* bool: Needs API
* string: API key
* int: Update/refresh rate

Table "rates"
12 changes: 11 additions & 1 deletion app.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,25 @@ DEPLOYMENT_PATH = /usr/share/$${TARGET}
SOURCES += \
src/$${TARGET}.cpp

OTHER_FILES += Changelog README.md icons flags

DISTFILES += qml/cover/CoverPage.qml \
TODO.md \
qml/$${TARGET}.qml \
qml/components/ExchangeRatesAPIProvider.qml \
qml/pages/FrontPage.qml \
qml/pages/SettingsDialog.qml \
qml/pages/SearchPage.qml \
qml/pages/AboutPage.qml \
qml/components/Requester.qml \
qml/components/Settings.qml \
qml/components/JSONListModel.qml \
qml/components/CurrencyModel.qml \
qml/components/CurrencyItem.qml \
qml/components/CurrencyCombo.qml \
qml/components/Notification.qml \
qml/components/Storage.qml \
qml/components/ExchangeProvider.qml \
rpm/$${TARGET}.changes.in \
rpm/$${TARGET}.changes.run.in \
rpm/$${TARGET}.spec \
Expand All @@ -36,8 +42,12 @@ SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172
# to disable building translations every time, comment out the
# following CONFIG line
#CONFIG += sailfishapp_i18n
TRANSLATIONS += translations/*.ts
#TRANSLATIONS += translations/*.ts

INSTALLS += flags
flags.files = flags
flags.path = $${DEPLOYMENT_PATH}

INSTALLS += data
data.files = data
data.path = $${DEPLOYMENT_PATH}
Loading

0 comments on commit 76b5bb5

Please sign in to comment.