author | allenforsythe <allenforsythe> | 2003-05-28 11:49:47 (UTC) |
---|---|---|
committer | allenforsythe <allenforsythe> | 2003-05-28 11:49:47 (UTC) |
commit | 52047fd3d3f30509d65834747c3a0c5c6760dc01 (patch) (unidiff) | |
tree | 136945c2ffff2434ba1e3c8959b5335f5016e8f8 /noncore/apps/qashmoney/preferences.h | |
parent | 7c85b3e98921afa74c7c6a90da4dfd54631c89c5 (diff) | |
download | opie-52047fd3d3f30509d65834747c3a0c5c6760dc01.zip opie-52047fd3d3f30509d65834747c3a0c5c6760dc01.tar.gz opie-52047fd3d3f30509d65834747c3a0c5c6760dc01.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'noncore/apps/qashmoney/preferences.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/preferences.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/preferences.h b/noncore/apps/qashmoney/preferences.h index 4a3e058..10ec6e9 100755 --- a/noncore/apps/qashmoney/preferences.h +++ b/noncore/apps/qashmoney/preferences.h | |||
@@ -1,50 +1,53 @@ | |||
1 | #include <sqlite.h> | 1 | #include <sqlite.h> |
2 | #include <qstring.h> | 2 | #include <qstring.h> |
3 | 3 | ||
4 | #ifndef PREFERENCES_H | 4 | #ifndef PREFERENCES_H |
5 | #define PREFERENCES_H | 5 | #define PREFERENCES_H |
6 | 6 | ||
7 | class Preferences | 7 | class Preferences |
8 | { | 8 | { |
9 | public: | 9 | public: |
10 | Preferences (); | 10 | Preferences (); |
11 | ~Preferences (); | 11 | ~Preferences (); |
12 | 12 | ||
13 | void addPreferences (); | 13 | void addPreferences (); |
14 | void initializeColumnPreferences (); | 14 | void initializeColumnPreferences (); |
15 | void initializeSortingPreferences (); | ||
15 | 16 | ||
16 | // Returns a preference value for the given preferences ID | 17 | // Returns a preference value for the given preferences ID |
17 | int getPreference ( int ); | 18 | int getPreference ( int ); |
18 | int getColumnPreference ( int id ); | 19 | int getColumnPreference ( int id ); |
20 | void getSortingPreference ( int id, int *column, int *direction ); | ||
19 | 21 | ||
20 | // Convenience for getting date separator with one function | 22 | // Convenience for getting date separator with one function |
21 | // call. Takes the preference id as its argument | 23 | // call. Takes the preference id as its argument |
22 | QString getSeparator ( ); | 24 | QString getSeparator ( ); |
23 | 25 | ||
24 | // Changes a preference for the given ID | 26 | // Changes a preference for the given ID |
25 | void changePreference ( int , int ); | 27 | void changePreference ( int , int ); |
26 | void changeColumnPreference ( int id, int width ); | 28 | void changeColumnPreference ( int id, int width ); |
29 | void changeSortingPreference ( int id, int column ); | ||
27 | 30 | ||
28 | // The primary database that stores all our data | 31 | // The primary database that stores all our data |
29 | sqlite *db; | 32 | sqlite *db; |
30 | 33 | ||
31 | // This function returns a Qstring for the year first date formats | 34 | // This function returns a Qstring for the year first date formats |
32 | // for displaying. It takes the date numbers | 35 | // for displaying. It takes the date numbers |
33 | QString getDate ( int, int, int ); | 36 | QString getDate ( int, int, int ); |
34 | QString getDate ( int y, int m ); | 37 | QString getDate ( int y, int m ); |
35 | 38 | ||
36 | void setDefaultDatePreferences (); | 39 | void setDefaultDatePreferences (); |
37 | }; | 40 | }; |
38 | 41 | ||
39 | #endif | 42 | #endif |
40 | 43 | ||
41 | 44 | ||
42 | 45 | ||
43 | 46 | ||
44 | 47 | ||
45 | 48 | ||
46 | 49 | ||
47 | 50 | ||
48 | 51 | ||
49 | 52 | ||
50 | 53 | ||