summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/qashmoney/config.in4
-rwxr-xr-xnoncore/apps/qashmoney/qashmoney.pro8
-rwxr-xr-xnoncore/apps/qashmoney/transaction.cpp8
-rwxr-xr-xnoncore/apps/qashmoney/transfer.cpp4
-rw-r--r--packages1
5 files changed, 19 insertions, 6 deletions
diff --git a/noncore/apps/qashmoney/config.in b/noncore/apps/qashmoney/config.in
new file mode 100644
index 0000000..94c39b6
--- a/dev/null
+++ b/noncore/apps/qashmoney/config.in
@@ -0,0 +1,4 @@
1 config QASHMONEY
2 boolean "opie-qashmoney (money manager)"
3 default "n"
4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE
diff --git a/noncore/apps/qashmoney/qashmoney.pro b/noncore/apps/qashmoney/qashmoney.pro
index 1070767..8b4646a 100755
--- a/noncore/apps/qashmoney/qashmoney.pro
+++ b/noncore/apps/qashmoney/qashmoney.pro
@@ -1,41 +1,49 @@
1TEMPLATE = app 1TEMPLATE = app
2CONFIG = qt warn_on release 2CONFIG = qt warn_on release
3 HEADERS =qashmoney.h \ 3 HEADERS =qashmoney.h \
4 accountdisplay.h \ 4 accountdisplay.h \
5 account.h \ 5 account.h \
6 transaction.h \ 6 transaction.h \
7 transactiondisplay.h \ 7 transactiondisplay.h \
8 newtransaction.h \ 8 newtransaction.h \
9 transfer.h \ 9 transfer.h \
10 transferdialog.h \ 10 transferdialog.h \
11 preferences.h \ 11 preferences.h \
12 preferencedialogs.h \ 12 preferencedialogs.h \
13 memory.h \ 13 memory.h \
14 memorydialog.h \ 14 memorydialog.h \
15 newaccount.h \ 15 newaccount.h \
16 calculator.h \ 16 calculator.h \
17 datepicker.h \ 17 datepicker.h \
18 budget.h \ 18 budget.h \
19 budgetdisplay.h \ 19 budgetdisplay.h \
20 currency.h 20 currency.h
21 SOURCES =qashmoney.cpp \ 21 SOURCES =qashmoney.cpp \
22 accountdisplay.cpp \ 22 accountdisplay.cpp \
23 account.cpp \ 23 account.cpp \
24 transaction.cpp \ 24 transaction.cpp \
25 transactiondisplay.cpp \ 25 transactiondisplay.cpp \
26 newtransaction.cpp \ 26 newtransaction.cpp \
27 transfer.cpp \ 27 transfer.cpp \
28 transferdialog.cpp \ 28 transferdialog.cpp \
29 preferences.cpp \ 29 preferences.cpp \
30 preferencedialogs.cpp \ 30 preferencedialogs.cpp \
31 memory.cpp \ 31 memory.cpp \
32 memorydialog.cpp \ 32 memorydialog.cpp \
33 newaccount.cpp \ 33 newaccount.cpp \
34 calculator.cpp \ 34 calculator.cpp \
35 datepicker.cpp \ 35 datepicker.cpp \
36 main.cpp \ 36 main.cpp \
37 budget.cpp \ 37 budget.cpp \
38 budgetdisplay.cpp \ 38 budgetdisplay.cpp \
39 currency.cpp 39 currency.cpp
40INCLUDEPATH = $(OPIEDIR)/include
41DEPENDPATH = $(OPIEDIR)/include
42
43DESTDIR = $(OPIEDIR)/bin
44
40unix:LIBS += -lm 45unix:LIBS += -lm
41LIBS += -lqpe -lqte -lstdc++ -lsqlite 46LIBS += -lqpe -lqte -lstdc++ -lsqlite
47
48include ( $(OPIEDIR)/include.pro )
49
diff --git a/noncore/apps/qashmoney/transaction.cpp b/noncore/apps/qashmoney/transaction.cpp
index a3bd9e7..dcf46b1 100755
--- a/noncore/apps/qashmoney/transaction.cpp
+++ b/noncore/apps/qashmoney/transaction.cpp
@@ -1,346 +1,346 @@
1// RESERVEDONE COLUMN NAME REPRESENTS THE LINEITEMID AND SHOULD BE CHANGED IN 1// RESERVEDONE COLUMN NAME REPRESENTS THE LINEITEMID AND SHOULD BE CHANGED IN
2// FUTURE VERSIONS OF QASHMONEY 2// FUTURE VERSIONS OF QASHMONEY
3 3
4// RESERVEDTWO REPRESENTS THE TRANSACTION DESCRIPTION 4// RESERVEDTWO REPRESENTS THE TRANSACTION DESCRIPTION
5 5
6#include "transaction.h" 6#include "transaction.h"
7#include "account.h" 7#include "account.h"
8#include "transactiondisplay.h" 8#include "transactiondisplay.h"
9 9
10#include <stdlib.h> 10#include <stdlib.h>
11#include <iostream.h> 11#include <iostream.h>
12 12
13extern Account *account; 13extern Account *account;
14extern Preferences *preferences; 14extern Preferences *preferences;
15 15
16Transaction::Transaction () 16Transaction::Transaction ()
17 { 17 {
18 tdb = sqlite_open ( "qmtransactions.db", 0, NULL ); 18 tdb = sqlite_open ( "qmtransactions.db", 0, NULL );
19 } 19 }
20 20
21Transaction::~Transaction () 21Transaction::~Transaction ()
22 { 22 {
23 sqlite_close ( tdb ); 23 sqlite_close ( tdb );
24 } 24 }
25 25
26void Transaction::addTransaction ( QString description, QString payee, int accountid, int parentid, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid ) 26void Transaction::addTransaction ( QString description, QString payee, int accountid, int parentid, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid )
27 { 27 {
28 sqlite_exec_printf ( tdb, "insert into transactions values ( '%q', %i, %i, %i, %i, %i, %i, %.2f, %i, %i, 0, 0, 0, 0, 0, 0, %i, '%q', 0, 28 sqlite_exec_printf ( tdb, "insert into transactions values ( '%q', %i, %i, %i, %i, %i, %i, %.2f, %i, %i, 0, 0, 0, 0, 0, 0, %i, '%q', 0, "
29 0, 0, 0, NULL );", 0, 0, 0, ( const char * ) payee, accountid, parentid, number, day, month, year, amount, cleared, budgetid, lineitemid, ( const char * ) description ); 29 "0, 0, 0, NULL );", 0, 0, 0, ( const char * ) payee, accountid, parentid, number, day, month, year, amount, cleared, budgetid, lineitemid, ( const char * ) description );
30 } 30 }
31 31
32void Transaction::updateTransaction ( QString description, QString payee, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid, int transactionid ) 32void Transaction::updateTransaction ( QString description, QString payee, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid, int transactionid )
33 { 33 {
34 sqlite_exec_printf ( tdb, "update transactions set reservedtwo = '%q', payee = '%q', number = %i, day = %i, month = %i, year = %i, amount = %.2f, 34 sqlite_exec_printf ( tdb, "update transactions set reservedtwo = '%q', payee = '%q', number = %i, day = %i, month = %i, year = %i, amount = %.2f,"
35 cleared = %i, budgetid = %i, reservedone = %i where transid = %i;", 0, 0, 0, ( const char * ) description, ( const char * ) payee, number, day, month, year, 35 "cleared = %i, budgetid = %i, reservedone = %i where transid = %i;", 0, 0, 0, ( const char * ) description, ( const char * ) payee, number, day, month, year,
36 amount, cleared, budgetid, lineitemid, transactionid ); 36 amount, cleared, budgetid, lineitemid, transactionid );
37 } 37 }
38 38
39void Transaction::deleteTransaction ( int transid ) 39void Transaction::deleteTransaction ( int transid )
40 { 40 {
41 sqlite_exec_printf ( tdb, "delete from transactions where transid = %i;", 0, 0, 0, transid ); 41 sqlite_exec_printf ( tdb, "delete from transactions where transid = %i;", 0, 0, 0, transid );
42 } 42 }
43 43
44void Transaction::deleteAllTransactions ( int accountid ) 44void Transaction::deleteAllTransactions ( int accountid )
45 { 45 {
46 sqlite_exec_printf ( tdb, "delete from transactions where accountid = %i;", 0, 0, 0, accountid ); 46 sqlite_exec_printf ( tdb, "delete from transactions where accountid = %i;", 0, 0, 0, accountid );
47 } 47 }
48 48
49int Transaction::getAccountID ( int id ) 49int Transaction::getAccountID ( int id )
50 { 50 {
51 char **results; 51 char **results;
52 sqlite_get_table_printf ( tdb, "select accountid from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 52 sqlite_get_table_printf ( tdb, "select accountid from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
53 return atol ( results [ 1 ] ); 53 return atol ( results [ 1 ] );
54 } 54 }
55 55
56int Transaction::getNumberOfTransactions () 56int Transaction::getNumberOfTransactions ()
57 { 57 {
58 char **results; 58 char **results;
59 sqlite_get_table ( tdb, "select count() from transactions;", &results, NULL, NULL, NULL ); 59 sqlite_get_table ( tdb, "select count() from transactions;", &results, NULL, NULL, NULL );
60 return atoi ( results [ 1 ] ); 60 return atoi ( results [ 1 ] );
61 } 61 }
62 62
63int Transaction::getNumberOfTransactions ( int accountid ) 63int Transaction::getNumberOfTransactions ( int accountid )
64 { 64 {
65 char **results; 65 char **results;
66 sqlite_get_table_printf ( tdb, "select count() from transactions where accountid = %i;", &results, NULL, NULL, NULL, accountid ); 66 sqlite_get_table_printf ( tdb, "select count() from transactions where accountid = %i;", &results, NULL, NULL, NULL, accountid );
67 return atol ( results [ 1 ] ); 67 return atol ( results [ 1 ] );
68 } 68 }
69 69
70QString Transaction::getPayee ( int id ) 70QString Transaction::getPayee ( int id )
71 { 71 {
72 char **results; 72 char **results;
73 sqlite_get_table_printf ( tdb, "select payee from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 73 sqlite_get_table_printf ( tdb, "select payee from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
74 return results [ 1 ]; 74 return results [ 1 ];
75 } 75 }
76 76
77QString Transaction::getTransactionDescription ( int id ) 77QString Transaction::getTransactionDescription ( int id )
78 { 78 {
79 char **results; 79 char **results;
80 sqlite_get_table_printf ( tdb, "select reservedtwo from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 80 sqlite_get_table_printf ( tdb, "select reservedtwo from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
81 return results [ 1 ]; 81 return results [ 1 ];
82 } 82 }
83 83
84QString Transaction::getNumber ( int id ) 84QString Transaction::getNumber ( int id )
85 { 85 {
86 char **results; 86 char **results;
87 sqlite_get_table_printf ( tdb, "select number from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 87 sqlite_get_table_printf ( tdb, "select number from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
88 return results [ 1 ]; 88 return results [ 1 ];
89 } 89 }
90 90
91QString Transaction::getAmount ( int id ) 91QString Transaction::getAmount ( int id )
92 { 92 {
93 char **results; 93 char **results;
94 sqlite_get_table_printf ( tdb, "select amount from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 94 sqlite_get_table_printf ( tdb, "select amount from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
95 return results [ 1 ]; 95 return results [ 1 ];
96 } 96 }
97 97
98QString Transaction::getAbsoluteAmount ( int id ) 98QString Transaction::getAbsoluteAmount ( int id )
99 { 99 {
100 char **results; 100 char **results;
101 sqlite_get_table_printf ( tdb, "select abs ( amount ) from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 101 sqlite_get_table_printf ( tdb, "select abs ( amount ) from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
102 return results [ 1 ]; 102 return results [ 1 ];
103 } 103 }
104 104
105int Transaction::getCleared ( int id ) 105int Transaction::getCleared ( int id )
106 { 106 {
107 char **results; 107 char **results;
108 sqlite_get_table_printf ( tdb, "select cleared from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 108 sqlite_get_table_printf ( tdb, "select cleared from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
109 QString cleared = results [ 1 ]; 109 QString cleared = results [ 1 ];
110 return cleared.toInt(); 110 return cleared.toInt();
111 } 111 }
112 112
113void Transaction::setCleared ( int id, int cleared ) 113void Transaction::setCleared ( int id, int cleared )
114 { 114 {
115 sqlite_exec_printf ( tdb, "update transactions set cleared = %i where transid = %i;", 0, 0, 0, cleared, id ); 115 sqlite_exec_printf ( tdb, "update transactions set cleared = %i where transid = %i;", 0, 0, 0, cleared, id );
116 } 116 }
117 117
118int Transaction::getBudgetID ( int id ) 118int Transaction::getBudgetID ( int id )
119 { 119 {
120 char **results; 120 char **results;
121 sqlite_get_table_printf ( tdb, "select budgetid from transactions where transid = %i;", &results, NULL, NULL, NULL, id ); 121 sqlite_get_table_printf ( tdb, "select budgetid from transactions where transid = %i;", &results, NULL, NULL, NULL, id );
122 QString budgetid = results [ 1 ]; 122 QString budgetid = results [ 1 ];
123 return budgetid.toInt(); 123 return budgetid.toInt();
124 } 124 }
125 125
126int Transaction::getLineItemID ( int id ) 126int Transaction::getLineItemID ( int id )
127 { 127 {
128 char **results; 128 char **results;
129 sqlite_get_table_printf ( tdb, "select reservedone from transactions where transid = %i;", &results, NULL, NULL, NULL, id ); 129 sqlite_get_table_printf ( tdb, "select reservedone from transactions where transid = %i;", &results, NULL, NULL, NULL, id );
130 QString lineitemid = results [ 1 ]; 130 QString lineitemid = results [ 1 ];
131 return lineitemid.toInt(); 131 return lineitemid.toInt();
132 } 132 }
133 133
134int Transaction::getDay ( int id ) 134int Transaction::getDay ( int id )
135 { 135 {
136 char **results; 136 char **results;
137 sqlite_get_table_printf ( tdb, "select day from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 137 sqlite_get_table_printf ( tdb, "select day from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
138 QString daystring = results [ 1 ]; 138 QString daystring = results [ 1 ];
139 return daystring.toInt(); 139 return daystring.toInt();
140 } 140 }
141 141
142int Transaction::getMonth ( int id ) 142int Transaction::getMonth ( int id )
143 { 143 {
144 char **results; 144 char **results;
145 sqlite_get_table_printf ( tdb, "select month from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 145 sqlite_get_table_printf ( tdb, "select month from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
146 QString monthstring = results [ 1 ]; 146 QString monthstring = results [ 1 ];
147 return monthstring.toInt(); 147 return monthstring.toInt();
148 } 148 }
149 149
150int Transaction::getYear ( int id ) 150int Transaction::getYear ( int id )
151 { 151 {
152 char **results; 152 char **results;
153 sqlite_get_table_printf ( tdb, "select year from transactions where transid= %i;", &results, NULL, NULL, NULL, id ); 153 sqlite_get_table_printf ( tdb, "select year from transactions where transid= %i;", &results, NULL, NULL, NULL, id );
154 QString yearstring = results [ 1 ]; 154 QString yearstring = results [ 1 ];
155 return yearstring.toInt(); 155 return yearstring.toInt();
156 } 156 }
157 157
158char ** Transaction::selectAllTransactions ( QDate fromdate, bool children, const char *limit, int id ) 158char ** Transaction::selectAllTransactions ( QDate fromdate, bool children, const char *limit, int id )
159 { 159 {
160 // initialize variables 160 // initialize variables
161 char **results; 161 char **results;
162 int showcleared = preferences->getPreference ( 3 ); 162 int showcleared = preferences->getPreference ( 3 );
163 QDate today = QDate::currentDate(); 163 QDate today = QDate::currentDate();
164 int fromyear = fromdate.year(); 164 int fromyear = fromdate.year();
165 int toyear = today.year(); 165 int toyear = today.year();
166 int frommonth = fromdate.month(); 166 int frommonth = fromdate.month();
167 int tomonth = today.month(); 167 int tomonth = today.month();
168 int fromday = fromdate.day(); 168 int fromday = fromdate.day();
169 169
170 // construct the first part of the string 170 // construct the first part of the string
171 QString query = "select day, month, year, payee, amount, transid, accountid from transactions where"; 171 QString query = "select day, month, year, payee, amount, transid, accountid from transactions where";
172 172
173 if ( frommonth == tomonth && fromyear == toyear ) // our dates cross neither a month nor a year 173 if ( frommonth == tomonth && fromyear == toyear ) // our dates cross neither a month nor a year
174 { 174 {
175 query.append ( " year = " ); 175 query.append ( " year = " );
176 query.append ( QString::number ( toyear ) ); 176 query.append ( QString::number ( toyear ) );
177 query.append ( " and month = " ); 177 query.append ( " and month = " );
178 query.append ( QString::number ( tomonth ) ); 178 query.append ( QString::number ( tomonth ) );
179 query.append ( " and day >= " ); 179 query.append ( " and day >= " );
180 query.append ( QString::number ( fromday ) ); 180 query.append ( QString::number ( fromday ) );
181 query.append ( " and" ); 181 query.append ( " and" );
182 } 182 }
183 else if ( frommonth != tomonth && fromyear == toyear ) // our dates cross a month within the same year 183 else if ( frommonth != tomonth && fromyear == toyear ) // our dates cross a month within the same year
184 { 184 {
185 query.append ( " year = " ); 185 query.append ( " year = " );
186 query.append ( QString::number ( toyear ) ); 186 query.append ( QString::number ( toyear ) );
187 query.append ( " and ( ( month <= " ); 187 query.append ( " and ( ( month <= " );
188 query.append ( QString::number ( tomonth ) ); 188 query.append ( QString::number ( tomonth ) );
189 query.append ( " and month > " ); 189 query.append ( " and month > " );
190 query.append ( QString::number ( frommonth ) ); 190 query.append ( QString::number ( frommonth ) );
191 query.append ( " ) or ( month = " ); 191 query.append ( " ) or ( month = " );
192 query.append ( QString::number ( frommonth ) ); 192 query.append ( QString::number ( frommonth ) );
193 query.append ( " and day >= " ); 193 query.append ( " and day >= " );
194 query.append ( QString::number ( fromday ) ); 194 query.append ( QString::number ( fromday ) );
195 query.append ( " ) ) and " ); 195 query.append ( " ) ) and " );
196 } 196 }
197 else if ( fromyear != toyear && fromyear != 1900 ) // here we are showing transactions from an entire year 197 else if ( fromyear != toyear && fromyear != 1900 ) // here we are showing transactions from an entire year
198 { 198 {
199 // divide this taks into two parts - get the transactions from the prior and then the current year 199 // divide this taks into two parts - get the transactions from the prior and then the current year
200 // current year part 200 // current year part
201 int tmpfrommonth = 1; // set temporary from months and days to Jan. 1 201 int tmpfrommonth = 1; // set temporary from months and days to Jan. 1
202 int tmpfromday = 1; 202 int tmpfromday = 1;
203 query.append ( " ( year >= " ); 203 query.append ( " ( year >= " );
204 query.append ( QString::number ( fromyear ) ); 204 query.append ( QString::number ( fromyear ) );
205 query.append ( " and ( month <= " ); 205 query.append ( " and ( month <= " );
206 query.append ( QString::number ( tomonth ) ); 206 query.append ( QString::number ( tomonth ) );
207 query.append ( " and month > " ); 207 query.append ( " and month > " );
208 query.append ( QString::number ( tmpfrommonth ) ); 208 query.append ( QString::number ( tmpfrommonth ) );
209 query.append ( " ) or ( month = " ); 209 query.append ( " ) or ( month = " );
210 query.append ( QString::number ( tmpfrommonth ) ); 210 query.append ( QString::number ( tmpfrommonth ) );
211 query.append ( " and day >= " ); 211 query.append ( " and day >= " );
212 query.append ( QString::number ( tmpfromday ) ); 212 query.append ( QString::number ( tmpfromday ) );
213 query.append ( " ) ) or" ); 213 query.append ( " ) ) or" );
214 214
215 // prior year part 215 // prior year part
216 int tmptomonth = 12; 216 int tmptomonth = 12;
217 query.append ( " ( year = " ); 217 query.append ( " ( year = " );
218 query.append ( QString::number ( fromyear ) ); 218 query.append ( QString::number ( fromyear ) );
219 query.append ( " and ( ( month <= " ); 219 query.append ( " and ( ( month <= " );
220 query.append ( QString::number ( tmptomonth ) ); 220 query.append ( QString::number ( tmptomonth ) );
221 query.append ( " and month > " ); 221 query.append ( " and month > " );
222 query.append ( QString::number ( frommonth ) ); 222 query.append ( QString::number ( frommonth ) );
223 query.append ( " ) or ( month = " ); 223 query.append ( " ) or ( month = " );
224 query.append ( QString::number ( frommonth ) ); 224 query.append ( QString::number ( frommonth ) );
225 query.append ( " and day >= " ); 225 query.append ( " and day >= " );
226 query.append ( QString::number ( fromday ) ); 226 query.append ( QString::number ( fromday ) );
227 query.append ( " ) ) ) and " ); 227 query.append ( " ) ) ) and " );
228 } 228 }
229 229
230 if ( account->getParentAccountID ( id ) == -1 && children == TRUE ) 230 if ( account->getParentAccountID ( id ) == -1 && children == TRUE )
231 query.append ( " parentid = %i and payee like '%q';" ); 231 query.append ( " parentid = %i and payee like '%q';" );
232 else 232 else
233 query.append ( " accountid = %i and payee like '%q';" ); 233 query.append ( " accountid = %i and payee like '%q';" );
234 234
235 sqlite_get_table_printf ( tdb, query, &results, &rows, &columns, NULL, id, limit ); 235 sqlite_get_table_printf ( tdb, query, &results, &rows, &columns, NULL, id, limit );
236 return results; 236 return results;
237 } 237 }
238 238
239char ** Transaction::selectNonClearedTransactions ( QDate fromdate, bool children, const char *limit, int id ) 239char ** Transaction::selectNonClearedTransactions ( QDate fromdate, bool children, const char *limit, int id )
240 { 240 {
241 char **results; 241 char **results;
242 if ( account->getParentAccountID ( id ) == -1 && children == TRUE ) 242 if ( account->getParentAccountID ( id ) == -1 && children == TRUE )
243 sqlite_get_table_printf ( tdb, "select day, month, year, payee, amount, transid, accountid from transactions where cleared = 0 and parentid = %i and payee like '%q';", &results, &rows, &columns, NULL, id, limit ); 243 sqlite_get_table_printf ( tdb, "select day, month, year, payee, amount, transid, accountid from transactions where cleared = 0 and parentid = %i and payee like '%q';", &results, &rows, &columns, NULL, id, limit );
244 else 244 else
245 sqlite_get_table_printf ( tdb, "select day, month, year, payee, amount, transid, accountid from transactions where cleared = 0 and accountid = %i and payee like '%q';", &results, &rows, &columns, NULL, id, limit ); 245 sqlite_get_table_printf ( tdb, "select day, month, year, payee, amount, transid, accountid from transactions where cleared = 0 and accountid = %i and payee like '%q';", &results, &rows, &columns, NULL, id, limit );
246 return results; 246 return results;
247 } 247 }
248 248
249void Transaction::displayTransactions ( QListView *listview, int id, bool children, const char *limit, QDate displaydate ) 249void Transaction::displayTransactions ( QListView *listview, int id, bool children, const char *limit, QDate displaydate )
250 { 250 {
251 int showcleared = preferences->getPreference ( 3 ); 251 int showcleared = preferences->getPreference ( 3 );
252 252
253 char **results; 253 char **results;
254 if ( showcleared == 0 ) 254 if ( showcleared == 0 )
255 results = selectNonClearedTransactions ( displaydate, children, limit, id ); 255 results = selectNonClearedTransactions ( displaydate, children, limit, id );
256 else 256 else
257 results = selectAllTransactions ( displaydate, children, limit, id ); 257 results = selectAllTransactions ( displaydate, children, limit, id );
258 258
259 // iterate through the result list and display each item 259 // iterate through the result list and display each item
260 int counter = 7; 260 int counter = 7;
261 while ( counter < ( ( rows + 1 ) * columns ) ) 261 while ( counter < ( ( rows + 1 ) * columns ) )
262 { 262 {
263 //QDate testdate ( atoi ( results [ counter + 2 ] ), atoi ( results [ counter + 1 ] ), atoi ( results [ counter ] ) ); 263 //QDate testdate ( atoi ( results [ counter + 2 ] ), atoi ( results [ counter + 1 ] ), atoi ( results [ counter ] ) );
264 QString date = preferences->getDate ( atoi ( results [ counter + 2 ] ), atoi ( results [ counter + 1 ] ), atoi ( results [ counter ] ) ); 264 QString date = preferences->getDate ( atoi ( results [ counter + 2 ] ), atoi ( results [ counter + 1 ] ), atoi ( results [ counter ] ) );
265 265
266 // construct transaction name, amount, id 266 // construct transaction name, amount, id
267 QString payee = results [ counter + 3 ]; 267 QString payee = results [ counter + 3 ];
268 QString amount = results [ counter + 4 ]; 268 QString amount = results [ counter + 4 ];
269 QString transferid = results [ counter + 5 ]; 269 QString transferid = results [ counter + 5 ];
270 270
271 //determine the account name of the child accounts that we're displaying 271 //determine the account name of the child accounts that we're displaying
272 QString accountname = account->getAccountName ( atoi ( results [ counter + 6 ] ) ); 272 QString accountname = account->getAccountName ( atoi ( results [ counter + 6 ] ) );
273 273
274 // fill in values 274 // fill in values
275 if ( account->getParentAccountID ( id ) != -1 ) // use these constructors if we're showing a child account 275 if ( account->getParentAccountID ( id ) != -1 ) // use these constructors if we're showing a child account
276 { 276 {
277 if ( showcleared == 1 && getCleared ( transferid.toInt() ) == 1 ) 277 if ( showcleared == 1 && getCleared ( transferid.toInt() ) == 1 )
278 ColorListItem *item = new ColorListItem ( listview, date, payee, amount, transferid ); 278 ColorListItem *item = new ColorListItem ( listview, date, payee, amount, transferid );
279 else 279 else
280 QListViewItem *item = new QListViewItem ( listview, date, payee, amount, transferid ); 280 QListViewItem *item = new QListViewItem ( listview, date, payee, amount, transferid );
281 } 281 }
282 else 282 else
283 { 283 {
284 if ( showcleared == 1 && getCleared ( transferid.toInt() ) == 1 ) 284 if ( showcleared == 1 && getCleared ( transferid.toInt() ) == 1 )
285 ColorListItem *item = new ColorListItem ( listview, date, payee, amount, transferid, accountname ); 285 ColorListItem *item = new ColorListItem ( listview, date, payee, amount, transferid, accountname );
286 else 286 else
287 QListViewItem *item = new QListViewItem ( listview, date, payee, amount, transferid, accountname ); 287 QListViewItem *item = new QListViewItem ( listview, date, payee, amount, transferid, accountname );
288 } 288 }
289 289
290 // advance counter 290 // advance counter
291 counter = counter + 7; 291 counter = counter + 7;
292 } 292 }
293 } 293 }
294 294
295QString Transaction::getBudgetTotal ( int budgetid, int lineitemid, int year, int month, int viewtype ) 295QString Transaction::getBudgetTotal ( int budgetid, int lineitemid, int year, int month, int viewtype )
296 { 296 {
297 // determine if we are viewing a years, months, or days budget 297 // determine if we are viewing a years, months, or days budget
298 // we have to pick a different sum for each 298 // we have to pick a different sum for each
299 char **results; 299 char **results;
300 switch ( viewtype ) 300 switch ( viewtype )
301 { 301 {
302 case 1: // we are viewing a year 302 case 1: // we are viewing a year
303 sqlite_get_table_printf ( tdb, "select abs ( sum ( amount ) ) from transactions where year = %i and amount < 0 and budgetid = %i and reservedone = %i;", &results, NULL, NULL, NULL, year, budgetid, lineitemid ); 303 sqlite_get_table_printf ( tdb, "select abs ( sum ( amount ) ) from transactions where year = %i and amount < 0 and budgetid = %i and reservedone = %i;", &results, NULL, NULL, NULL, year, budgetid, lineitemid );
304 break; 304 break;
305 305
306 case 0: // we are viewing a month 306 case 0: // we are viewing a month
307 sqlite_get_table_printf ( tdb, "select abs ( sum ( amount ) ) from transactions where year = %i and month = %i and amount < 0 and budgetid = %i and reservedone = %i;", &results, NULL, NULL, NULL, year, month, budgetid, lineitemid ); 307 sqlite_get_table_printf ( tdb, "select abs ( sum ( amount ) ) from transactions where year = %i and month = %i and amount < 0 and budgetid = %i and reservedone = %i;", &results, NULL, NULL, NULL, year, month, budgetid, lineitemid );
308 break; 308 break;
309 } 309 }
310 QString amount = results [ 1 ]; 310 QString amount = results [ 1 ];
311 float total = amount.toFloat(); 311 float total = amount.toFloat();
312 amount.setNum ( total, 'f', 2 ); 312 amount.setNum ( total, 'f', 2 );
313 return amount; 313 return amount;
314 } 314 }
315 315
316QString Transaction::getActualTotal ( int budgetid, int year, int month, int viewtype ) 316QString Transaction::getActualTotal ( int budgetid, int year, int month, int viewtype )
317 { 317 {
318 // determine if we are viewing a years, months, or days budget 318 // determine if we are viewing a years, months, or days budget
319 // we have to pick a different sum for each 319 // we have to pick a different sum for each
320 char **results; 320 char **results;
321 switch ( viewtype ) 321 switch ( viewtype )
322 { 322 {
323 case 1: // we are viewing a year 323 case 1: // we are viewing a year
324 sqlite_get_table_printf ( tdb, "select abs ( sum ( amount ) ) from transactions where year = %i and amount < 0 and budgetid = %i;", &results, NULL, NULL, NULL, year, budgetid ); 324 sqlite_get_table_printf ( tdb, "select abs ( sum ( amount ) ) from transactions where year = %i and amount < 0 and budgetid = %i;", &results, NULL, NULL, NULL, year, budgetid );
325 break; 325 break;
326 326
327 case 0: // we are viewing a month 327 case 0: // we are viewing a month
328 sqlite_get_table_printf ( tdb, "select abs ( sum ( amount ) ) from transactions where year = %i and month = %i and amount < 0 and budgetid = %i;", &results, NULL, NULL, NULL, year, month, budgetid ); 328 sqlite_get_table_printf ( tdb, "select abs ( sum ( amount ) ) from transactions where year = %i and month = %i and amount < 0 and budgetid = %i;", &results, NULL, NULL, NULL, year, month, budgetid );
329 break; 329 break;
330 } 330 }
331 QString amount = results [ 1 ]; 331 QString amount = results [ 1 ];
332 float total = amount.toFloat(); 332 float total = amount.toFloat();
333 amount.setNum ( total, 'f', 2 ); 333 amount.setNum ( total, 'f', 2 );
334 return amount; 334 return amount;
335 } 335 }
336 336
337void Transaction::clearBudgetIDs ( int budgetid, int lineitemid ) 337void Transaction::clearBudgetIDs ( int budgetid, int lineitemid )
338 { 338 {
339 sqlite_exec_printf ( tdb, "update transactions set budgetid = -1 where budgetid = %i and reservedone = %i;", 0, 0, 0, budgetid, lineitemid ); 339 sqlite_exec_printf ( tdb, "update transactions set budgetid = -1 where budgetid = %i and reservedone = %i;", 0, 0, 0, budgetid, lineitemid );
340 } 340 }
341 341
342void Transaction::clearBudgetIDs ( int budgetid ) 342void Transaction::clearBudgetIDs ( int budgetid )
343 { 343 {
344 sqlite_exec_printf ( tdb, "update transactions set budgetid = -1 where budgetid = %i;", 0, 0, 0, budgetid ); 344 sqlite_exec_printf ( tdb, "update transactions set budgetid = -1 where budgetid = %i;", 0, 0, 0, budgetid );
345 } 345 }
346 346
diff --git a/noncore/apps/qashmoney/transfer.cpp b/noncore/apps/qashmoney/transfer.cpp
index 568d584..c4bbaf9 100755
--- a/noncore/apps/qashmoney/transfer.cpp
+++ b/noncore/apps/qashmoney/transfer.cpp
@@ -1,260 +1,260 @@
1#include "transfer.h" 1#include "transfer.h"
2#include "account.h" 2#include "account.h"
3#include "transactiondisplay.h" 3#include "transactiondisplay.h"
4#include <stdlib.h> 4#include <stdlib.h>
5#include <iostream.h> 5#include <iostream.h>
6 6
7extern Account *account; 7extern Account *account;
8extern Preferences *preferences; 8extern Preferences *preferences;
9 9
10Transfer::Transfer () 10Transfer::Transfer ()
11 { 11 {
12 db = sqlite_open ( "qmtransfers.db", 0, 0 ); 12 db = sqlite_open ( "qmtransfers.db", 0, 0 );
13 } 13 }
14 14
15Transfer::~Transfer () 15Transfer::~Transfer ()
16 { 16 {
17 sqlite_close ( db ); 17 sqlite_close ( db );
18 } 18 }
19 19
20void Transfer::addTransfer ( int fromaccount, int fromparent, int toaccount, int toparent, int day, int month, int year, float amount, int cleared ) 20void Transfer::addTransfer ( int fromaccount, int fromparent, int toaccount, int toparent, int day, int month, int year, float amount, int cleared )
21 { 21 {
22 int nextrowid = -1; 22 int nextrowid = -1;
23 char **results; 23 char **results;
24 sqlite_get_table ( db, "select count() from transfers;", &results, 0, 0, 0 ); 24 sqlite_get_table ( db, "select count() from transfers;", &results, 0, 0, 0 );
25 if ( atoi ( results [ 1 ] ) != 0 ) 25 if ( atoi ( results [ 1 ] ) != 0 )
26 { 26 {
27 char **results; 27 char **results;
28 sqlite_get_table ( db, "select min ( rowid ) from transfers;", &results, 0, 0, 0 ); 28 sqlite_get_table ( db, "select min ( rowid ) from transfers;", &results, 0, 0, 0 );
29 nextrowid = ( atoi ( results [ 1 ] ) ) - 1; 29 nextrowid = ( atoi ( results [ 1 ] ) ) - 1;
30 } 30 }
31 sqlite_exec_printf ( db, "insert into transfers values ( %i, %i, %i, %i, %i, %i, %i, 0, 0, %.2f, %i, 0, 0, 0, 0, 0, %i );", 0, 0, 0, fromaccount, fromparent, toaccount, toparent, day, month, year, amount, cleared, nextrowid ); 31 sqlite_exec_printf ( db, "insert into transfers values ( %i, %i, %i, %i, %i, %i, %i, 0, 0, %.2f, %i, 0, 0, 0, 0, 0, %i );", 0, 0, 0, fromaccount, fromparent, toaccount, toparent, day, month, year, amount, cleared, nextrowid );
32 } 32 }
33 33
34void Transfer::updateTransfer ( int fromaccount, int fromparent, int toaccount, int toparent, int day, int month, int year, float amount, int cleared, int transferid ) 34void Transfer::updateTransfer ( int fromaccount, int fromparent, int toaccount, int toparent, int day, int month, int year, float amount, int cleared, int transferid )
35 { 35 {
36 sqlite_exec_printf ( db, "update transfers set fromaccount = %i, fromparent = %i, toaccount = %i, toparent = %i, day = %i, month = %i, year = %i, 36 sqlite_exec_printf ( db, "update transfers set fromaccount = %i, fromparent = %i, toaccount = %i, toparent = %i, day = %i, month = %i, year = %i,"
37 amount = %.2f, cleared = %i where transferid = %i;", 0, 0, 0, fromaccount, fromparent, toaccount, toparent, day, month, year, amount, cleared, transferid ); 37 "amount = %.2f, cleared = %i where transferid = %i;", 0, 0, 0, fromaccount, fromparent, toaccount, toparent, day, month, year, amount, cleared, transferid );
38 } 38 }
39 39
40void Transfer::deleteTransfer ( int transferid ) 40void Transfer::deleteTransfer ( int transferid )
41 { 41 {
42 sqlite_exec_printf ( db, "delete from transfers where transferid = %i;", 0, 0, 0, transferid ); 42 sqlite_exec_printf ( db, "delete from transfers where transferid = %i;", 0, 0, 0, transferid );
43 } 43 }
44 44
45void Transfer::deleteAllTransfers ( int accountid ) 45void Transfer::deleteAllTransfers ( int accountid )
46 { 46 {
47 sqlite_exec_printf ( db, "delete from transfers where fromaccount = %i;", 0, 0, 0, accountid ); 47 sqlite_exec_printf ( db, "delete from transfers where fromaccount = %i;", 0, 0, 0, accountid );
48 sqlite_exec_printf ( db, "delete from transfers where toaccount = %i;", 0, 0, 0, accountid ); 48 sqlite_exec_printf ( db, "delete from transfers where toaccount = %i;", 0, 0, 0, accountid );
49 } 49 }
50 50
51int Transfer::getNumberOfTransfers () 51int Transfer::getNumberOfTransfers ()
52 { 52 {
53 char **results; 53 char **results;
54 sqlite_get_table ( db, "select count() from transfers;", &results, 0, 0, 0 ); 54 sqlite_get_table ( db, "select count() from transfers;", &results, 0, 0, 0 );
55 return atoi ( results [ 1 ] ); 55 return atoi ( results [ 1 ] );
56 } 56 }
57 57
58int Transfer::getNumberOfTransfers ( int accountid ) 58int Transfer::getNumberOfTransfers ( int accountid )
59 { 59 {
60 char **results; 60 char **results;
61 sqlite_get_table_printf ( db, "select count() from transfers where fromaccount = %i;", &results, 0, 0, 0, accountid ); 61 sqlite_get_table_printf ( db, "select count() from transfers where fromaccount = %i;", &results, 0, 0, 0, accountid );
62 int transfers = atoi ( results [ 1 ] ); 62 int transfers = atoi ( results [ 1 ] );
63 sqlite_get_table_printf ( db, "select count() from transfers where toaccount = %i;", &results, 0, 0, 0, accountid ); 63 sqlite_get_table_printf ( db, "select count() from transfers where toaccount = %i;", &results, 0, 0, 0, accountid );
64 transfers = transfers + atoi ( results [ 1 ] ); 64 transfers = transfers + atoi ( results [ 1 ] );
65 return transfers; 65 return transfers;
66 } 66 }
67 67
68void Transfer::displayTransfers ( QListView *listview, int accountid, bool children, QDate displaydate ) 68void Transfer::displayTransfers ( QListView *listview, int accountid, bool children, QDate displaydate )
69 { 69 {
70 int showcleared = preferences->getPreference ( 3 ); 70 int showcleared = preferences->getPreference ( 3 );
71 71
72 // select the from transfers to display 72 // select the from transfers to display
73 char **results; 73 char **results;
74 int rows, columns; 74 int rows, columns;
75 if ( account->getParentAccountID ( accountid ) == -1 && children == TRUE ) 75 if ( account->getParentAccountID ( accountid ) == -1 && children == TRUE )
76 { 76 {
77 if ( showcleared == 0 ) 77 if ( showcleared == 0 )
78 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where cleared = 0 and toparent = %i;", &results, &rows, &columns, 0, accountid ); 78 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where cleared = 0 and toparent = %i;", &results, &rows, &columns, 0, accountid );
79 else 79 else
80 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where toparent = %i;", &results, &rows, &columns, 0, accountid ); 80 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where toparent = %i;", &results, &rows, &columns, 0, accountid );
81 } 81 }
82 else 82 else
83 { 83 {
84 if ( showcleared == 0 ) 84 if ( showcleared == 0 )
85 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where cleared = 0 and toaccount = %i;", &results, &rows, &columns, 0, accountid ); 85 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where cleared = 0 and toaccount = %i;", &results, &rows, &columns, 0, accountid );
86 else 86 else
87 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where toaccount = %i;", &results, &rows, &columns, 0, accountid ); 87 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where toaccount = %i;", &results, &rows, &columns, 0, accountid );
88 } 88 }
89 89
90 // iterate through the list and display the from items 90 // iterate through the list and display the from items
91 int counter = 7; 91 int counter = 7;
92 int position = 0; 92 int position = 0;
93 while ( counter < ( ( rows + 1 ) * columns ) ) 93 while ( counter < ( ( rows + 1 ) * columns ) )
94 { 94 {
95 // construct the date 95 // construct the date
96 QString daystring = results [ counter ]; 96 QString daystring = results [ counter ];
97 int day = daystring.toInt (); 97 int day = daystring.toInt ();
98 QString monthstring = results [ counter + 1 ]; 98 QString monthstring = results [ counter + 1 ];
99 int month = monthstring.toInt (); 99 int month = monthstring.toInt ();
100 QString yearstring = results [ counter + 2 ]; 100 QString yearstring = results [ counter + 2 ];
101 int year = yearstring.toInt (); 101 int year = yearstring.toInt ();
102 QString date = preferences->getDate ( year, month, day ); 102 QString date = preferences->getDate ( year, month, day );
103 QDate testdate ( year, month, day ); 103 QDate testdate ( year, month, day );
104 104
105 //construct the amount and id strings 105 //construct the amount and id strings
106 QString amount = results [ counter + 3 ]; 106 QString amount = results [ counter + 3 ];
107 QString id = results [ counter + 4 ]; 107 QString id = results [ counter + 4 ];
108 108
109 // construct the transaction name 109 // construct the transaction name
110 QString transactionname = "FROM: "; 110 QString transactionname = "FROM: ";
111 QString temp1 = results [ counter + 5 ]; 111 QString temp1 = results [ counter + 5 ];
112 transactionname.append ( account->getAccountName ( temp1.toInt() ) ); 112 transactionname.append ( account->getAccountName ( temp1.toInt() ) );
113 113
114 QString toaccount = account->getAccountName ( atol ( results [ counter + 6 ] ) ); 114 QString toaccount = account->getAccountName ( atol ( results [ counter + 6 ] ) );
115 115
116 if ( testdate >= displaydate || showcleared == 0 ) 116 if ( testdate >= displaydate || showcleared == 0 )
117 { 117 {
118 // display this transfer 118 // display this transfer
119 if ( account->getParentAccountID ( accountid ) == -1 ) 119 if ( account->getParentAccountID ( accountid ) == -1 )
120 { 120 {
121 if ( showcleared == 1 && getCleared ( id.toInt() ) == 1 ) 121 if ( showcleared == 1 && getCleared ( id.toInt() ) == 1 )
122 ColorListItem *item = new ColorListItem ( listview, date, transactionname, amount, id, toaccount ); 122 ColorListItem *item = new ColorListItem ( listview, date, transactionname, amount, id, toaccount );
123 else 123 else
124 QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id, toaccount ); 124 QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id, toaccount );
125 } 125 }
126 else 126 else
127 { 127 {
128 if ( showcleared == 1 && getCleared ( id.toInt() ) == 1 ) 128 if ( showcleared == 1 && getCleared ( id.toInt() ) == 1 )
129 ColorListItem *item = new ColorListItem ( listview, date, transactionname, amount, id ); 129 ColorListItem *item = new ColorListItem ( listview, date, transactionname, amount, id );
130 else 130 else
131 QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id ); 131 QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id );
132 } 132 }
133 } 133 }
134 counter = counter + 7; 134 counter = counter + 7;
135 } 135 }
136 136
137 // select the to transfers to display 137 // select the to transfers to display
138 char **toresults; 138 char **toresults;
139 rows = 0; 139 rows = 0;
140 columns = 0; 140 columns = 0;
141 if ( account->getParentAccountID ( accountid ) == -1 && children == TRUE ) 141 if ( account->getParentAccountID ( accountid ) == -1 && children == TRUE )
142 { 142 {
143 if ( showcleared == 0 ) 143 if ( showcleared == 0 )
144 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where cleared = 0 and fromparent = %i;", &toresults, &rows, &columns, 0, accountid ); 144 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where cleared = 0 and fromparent = %i;", &toresults, &rows, &columns, 0, accountid );
145 else 145 else
146 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where fromparent = %i;", &toresults, &rows, &columns, 0, accountid ); 146 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where fromparent = %i;", &toresults, &rows, &columns, 0, accountid );
147 } 147 }
148 else 148 else
149 { 149 {
150 if ( showcleared == 0 ) 150 if ( showcleared == 0 )
151 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where cleared = 0 and fromaccount = %i;", &toresults, &rows, &columns, 0, accountid ); 151 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where cleared = 0 and fromaccount = %i;", &toresults, &rows, &columns, 0, accountid );
152 else 152 else
153 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where fromaccount = %i;", &toresults, &rows, &columns, 0, accountid ); 153 sqlite_get_table_printf ( db, "select day, month, year, amount, transferid, fromaccount, toaccount from transfers where fromaccount = %i;", &toresults, &rows, &columns, 0, accountid );
154 } 154 }
155 155
156 // iterate through the list and display the from items 156 // iterate through the list and display the from items
157 counter = 7; 157 counter = 7;
158 position = 0; 158 position = 0;
159 while ( counter < ( ( rows + 1 ) * columns ) ) 159 while ( counter < ( ( rows + 1 ) * columns ) )
160 { 160 {
161 // construct the date 161 // construct the date
162 QString daystring = toresults [ counter ]; 162 QString daystring = toresults [ counter ];
163 int day = daystring.toInt (); 163 int day = daystring.toInt ();
164 QString monthstring = toresults [ counter + 1 ]; 164 QString monthstring = toresults [ counter + 1 ];
165 int month = monthstring.toInt (); 165 int month = monthstring.toInt ();
166 QString yearstring = toresults [ counter + 2 ]; 166 QString yearstring = toresults [ counter + 2 ];
167 int year = yearstring.toInt (); 167 int year = yearstring.toInt ();
168 QString date = preferences->getDate ( year, month, day ); 168 QString date = preferences->getDate ( year, month, day );
169 QDate testdate ( year, month, day ); 169 QDate testdate ( year, month, day );
170 170
171 //construct the amount and id strings 171 //construct the amount and id strings
172 QString amount = toresults [ counter + 3 ]; 172 QString amount = toresults [ counter + 3 ];
173 amount.prepend ( "-" ); 173 amount.prepend ( "-" );
174 QString id = toresults [ counter + 4 ]; 174 QString id = toresults [ counter + 4 ];
175 175
176 // construct the transaction name 176 // construct the transaction name
177 QString transactionname = "TO: "; 177 QString transactionname = "TO: ";
178 QString temp1 = toresults [ counter + 6 ]; 178 QString temp1 = toresults [ counter + 6 ];
179 transactionname.append ( account->getAccountName ( temp1.toInt() ) ); 179 transactionname.append ( account->getAccountName ( temp1.toInt() ) );
180 180
181 QString fromaccount = account->getAccountName ( atol ( toresults [ counter + 5 ] ) ); 181 QString fromaccount = account->getAccountName ( atol ( toresults [ counter + 5 ] ) );
182 182
183 if ( testdate >= displaydate || showcleared == 0 ) 183 if ( testdate >= displaydate || showcleared == 0 )
184 { 184 {
185 // display this transfer 185 // display this transfer
186 if ( account->getParentAccountID ( accountid ) == -1 ) 186 if ( account->getParentAccountID ( accountid ) == -1 )
187 { 187 {
188 if ( showcleared == 1 && getCleared ( id.toInt() ) == 1 ) 188 if ( showcleared == 1 && getCleared ( id.toInt() ) == 1 )
189 ColorListItem *item = new ColorListItem ( listview, date, transactionname, amount, id, fromaccount ); 189 ColorListItem *item = new ColorListItem ( listview, date, transactionname, amount, id, fromaccount );
190 else 190 else
191 QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id, fromaccount ); 191 QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id, fromaccount );
192 } 192 }
193 else 193 else
194 { 194 {
195 if ( showcleared == 1 && getCleared ( id.toInt() ) == 1 ) 195 if ( showcleared == 1 && getCleared ( id.toInt() ) == 1 )
196 ColorListItem *item = new ColorListItem ( listview, date, transactionname, amount, id ); 196 ColorListItem *item = new ColorListItem ( listview, date, transactionname, amount, id );
197 else 197 else
198 QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id ); 198 QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id );
199 } 199 }
200 } 200 }
201 201
202 counter = counter + 7; 202 counter = counter + 7;
203 } 203 }
204 } 204 }
205 205
206int Transfer::getCleared ( int id ) 206int Transfer::getCleared ( int id )
207 { 207 {
208 char **results; 208 char **results;
209 sqlite_get_table_printf ( db, "select cleared from transfers where transferid= %i;", &results, 0, 0, 0, id ); 209 sqlite_get_table_printf ( db, "select cleared from transfers where transferid= %i;", &results, 0, 0, 0, id );
210 return atoi ( results [ 1 ] ); 210 return atoi ( results [ 1 ] );
211 } 211 }
212 212
213void Transfer::setCleared ( int id, int cleared ) 213void Transfer::setCleared ( int id, int cleared )
214 { 214 {
215 sqlite_exec_printf ( db, "update transfers set cleared = %i where transferid = %i;", 0, 0, 0, cleared, id ); 215 sqlite_exec_printf ( db, "update transfers set cleared = %i where transferid = %i;", 0, 0, 0, cleared, id );
216 } 216 }
217 217
218int Transfer::getFromAccountID ( int id ) 218int Transfer::getFromAccountID ( int id )
219 { 219 {
220 char **results; 220 char **results;
221 sqlite_get_table_printf ( db, "select fromaccount from transfers where transferid= %i;", &results, 0, 0, 0, id ); 221 sqlite_get_table_printf ( db, "select fromaccount from transfers where transferid= %i;", &results, 0, 0, 0, id );
222 return atoi ( results [ 1 ] ); 222 return atoi ( results [ 1 ] );
223 } 223 }
224 224
225int Transfer::getToAccountID ( int id ) 225int Transfer::getToAccountID ( int id )
226 { 226 {
227 char **results; 227 char **results;
228 sqlite_get_table_printf ( db, "select toaccount from transfers where transferid= %i;", &results, 0, 0, 0, id ); 228 sqlite_get_table_printf ( db, "select toaccount from transfers where transferid= %i;", &results, 0, 0, 0, id );
229 return atoi ( results [ 1 ] ); 229 return atoi ( results [ 1 ] );
230 } 230 }
231 231
232int Transfer::getDay ( int id ) 232int Transfer::getDay ( int id )
233 { 233 {
234 char **results; 234 char **results;
235 sqlite_get_table_printf ( db, "select day from transfers where transferid= %i;", &results, 0, 0, 0, id ); 235 sqlite_get_table_printf ( db, "select day from transfers where transferid= %i;", &results, 0, 0, 0, id );
236 return atoi ( results [ 1 ] ); 236 return atoi ( results [ 1 ] );
237 } 237 }
238 238
239int Transfer::getMonth ( int id ) 239int Transfer::getMonth ( int id )
240 { 240 {
241 char **results; 241 char **results;
242 sqlite_get_table_printf ( db, "select month from transfers where transferid= %i;", &results, 0, 0, 0, id ); 242 sqlite_get_table_printf ( db, "select month from transfers where transferid= %i;", &results, 0, 0, 0, id );
243 return atoi ( results [ 1 ] ); 243 return atoi ( results [ 1 ] );
244 } 244 }
245 245
246int Transfer::getYear ( int id ) 246int Transfer::getYear ( int id )
247 { 247 {
248 char **results; 248 char **results;
249 sqlite_get_table_printf ( db, "select year from transfers where transferid= %i;", &results, 0, 0, 0, id ); 249 sqlite_get_table_printf ( db, "select year from transfers where transferid= %i;", &results, 0, 0, 0, id );
250 return atoi ( results [ 1 ] ); 250 return atoi ( results [ 1 ] );
251 } 251 }
252 252
253QString Transfer::getAmount ( int id ) 253QString Transfer::getAmount ( int id )
254 { 254 {
255 char **results; 255 char **results;
256 sqlite_get_table_printf ( db, "select amount from transfers where transferid= %i;", &results, 0, 0, 0, id ); 256 sqlite_get_table_printf ( db, "select amount from transfers where transferid= %i;", &results, 0, 0, 0, id );
257 return results [ 1 ]; 257 return results [ 1 ];
258 } 258 }
259 259
260 260
diff --git a/packages b/packages
index c48eee8..0e6340f 100644
--- a/packages
+++ b/packages
@@ -1,191 +1,192 @@
1 CONFIG_ADDRESSBOOK core/pim/addressbookaddressbook.pro 1 CONFIG_ADDRESSBOOK core/pim/addressbookaddressbook.pro
2 CONFIG_ADVANCEDFM noncore/apps/advancedfmadvancedfm.pro 2 CONFIG_ADVANCEDFM noncore/apps/advancedfmadvancedfm.pro
3 CONFIG_APPEARANCE2 noncore/settings/appearance2appearance2.pro 3 CONFIG_APPEARANCE2 noncore/settings/appearance2appearance2.pro
4 CONFIG_APPSKEY noncore/settings/appskeyappskey.pro 4 CONFIG_APPSKEY noncore/settings/appskeyappskey.pro
5 CONFIG_AQPKG noncore/apps/aqpkgaqpkg.pro 5 CONFIG_AQPKG noncore/apps/aqpkgaqpkg.pro
6 CONFIG_BACKGAMMONnoncore/games/backgammon backgammon.pro 6 CONFIG_BACKGAMMONnoncore/games/backgammon backgammon.pro
7 CONFIG_BACKUP noncore/settings/backupbackup.pro 7 CONFIG_BACKUP noncore/settings/backupbackup.pro
8 CONFIG_BATTERYAPPLET core/applets/batteryappletbatteryapplet.pro 8 CONFIG_BATTERYAPPLET core/applets/batteryappletbatteryapplet.pro
9 CONFIG_BEND noncore/mail/bendbend.pro 9 CONFIG_BEND noncore/mail/bendbend.pro
10 CONFIG_BINARY noncore/tools/calc2/binarybinary.pro 10 CONFIG_BINARY noncore/tools/calc2/binarybinary.pro
11 CONFIG_BLUE-PIN noncore/net/opietooth/blue-pinblue-pin.pro 11 CONFIG_BLUE-PIN noncore/net/opietooth/blue-pinblue-pin.pro
12 CONFIG_BOUNCE noncore/games/bouncebounce.pro 12 CONFIG_BOUNCE noncore/games/bouncebounce.pro
13 CONFIG_BUTTON-SETTINGS core/settings/buttonbutton.pro 13 CONFIG_BUTTON-SETTINGS core/settings/buttonbutton.pro
14 CONFIG_BUZZWORD noncore/games/buzzwordbuzzword.pro 14 CONFIG_BUZZWORD noncore/games/buzzwordbuzzword.pro
15 CONFIG_CALC2 noncore/tools/calc2calc.pro 15 CONFIG_CALC2 noncore/tools/calc2calc.pro
16 CONFIG_CALCULATOR noncore/tools/calculatorcalculator.pro 16 CONFIG_CALCULATOR noncore/tools/calculatorcalculator.pro
17 CONFIG_CALIBRATE core/apps/calibratecalibrate.pro 17 CONFIG_CALIBRATE core/apps/calibratecalibrate.pro
18 CONFIG_CAMERA noncore/multimedia/cameracamera.pro 18 CONFIG_CAMERA noncore/multimedia/cameracamera.pro
19 CONFIG_CARDMON core/applets/cardmoncardmon.pro 19 CONFIG_CARDMON core/applets/cardmoncardmon.pro
20 CONFIG_CHECKBOOK noncore/apps/checkbookcheckbook.pro 20 CONFIG_CHECKBOOK noncore/apps/checkbookcheckbook.pro
21 CONFIG_CITYTIME core/settings/citytimecitytime.pro 21 CONFIG_CITYTIME core/settings/citytimecitytime.pro
22 CONFIG_CLIPBOARDAPPLET core/applets/clipboardappletclipboardapplet.pro 22 CONFIG_CLIPBOARDAPPLET core/applets/clipboardappletclipboardapplet.pro
23 CONFIG_CLOCK noncore/tools/clockclock.pro 23 CONFIG_CLOCK noncore/tools/clockclock.pro
24 CONFIG_CLOCKAPPLET core/applets/clockappletclockapplet.pro 24 CONFIG_CLOCKAPPLET core/applets/clockappletclockapplet.pro
25 CONFIG_CONFEDIT noncore/apps/confeditconfedit.pro 25 CONFIG_CONFEDIT noncore/apps/confeditconfedit.pro
26 CONFIG_DASHER inputmethods/dasherdasher.pro 26 CONFIG_DASHER inputmethods/dasherdasher.pro
27 CONFIG_DATEBOOK core/pim/datebookdatebook.pro 27 CONFIG_DATEBOOK core/pim/datebookdatebook.pro
28 CONFIG_DECO_FLAT noncore/decorations/flatflat.pro 28 CONFIG_DECO_FLAT noncore/decorations/flatflat.pro
29 CONFIG_DECO_LIQUID noncore/decorations/liquidliquid.pro 29 CONFIG_DECO_LIQUID noncore/decorations/liquidliquid.pro
30 CONFIG_DECO_POLISHED noncore/decorations/polishedpolished.pro 30 CONFIG_DECO_POLISHED noncore/decorations/polishedpolished.pro
31 CONFIG_DICTIONARY noncore/apps/dictionarydictionary.pro 31 CONFIG_DICTIONARY noncore/apps/dictionarydictionary.pro
32 CONFIG_DRAWPAD noncore/graphics/drawpaddrawpad.pro 32 CONFIG_DRAWPAD noncore/graphics/drawpaddrawpad.pro
33 CONFIG_DVORAK inputmethods/dvorakdvorak.pro 33 CONFIG_DVORAK inputmethods/dvorakdvorak.pro
34 CONFIG_EMBEDDEDKONSOLE core/apps/embeddedkonsoleembeddedkonsole.pro 34 CONFIG_EMBEDDEDKONSOLE core/apps/embeddedkonsoleembeddedkonsole.pro
35 CONFIG_EUROCONV noncore/tools/euroconv/ euroconv.pro 35 CONFIG_EUROCONV noncore/tools/euroconv/ euroconv.pro
36 CONFIG_FIFTEEN noncore/games/fifteenfifteen.pro 36 CONFIG_FIFTEEN noncore/games/fifteenfifteen.pro
37 CONFIG_FILEBROWSER core/apps/filebrowserfilebrowser.pro 37 CONFIG_FILEBROWSER core/apps/filebrowserfilebrowser.pro
38 CONFIG_FLAT noncore/styles/flatflat.pro 38 CONFIG_FLAT noncore/styles/flatflat.pro
39 CONFIG_FORMATTER noncore/tools/formatterformatter.pro 39 CONFIG_FORMATTER noncore/tools/formatterformatter.pro
40 CONFIG_FREETYPE freetypefreetype.pro 40 CONFIG_FREETYPE freetypefreetype.pro
41 CONFIG_FRESH noncore/styles/freshfresh.pro 41 CONFIG_FRESH noncore/styles/freshfresh.pro
42 CONFIG_FTPLIB noncore/net/ftplibftplib.pro 42 CONFIG_FTPLIB noncore/net/ftplibftplib.pro
43 CONFIG_GO noncore/games/gogo.pro 43 CONFIG_GO noncore/games/gogo.pro
44 CONFIG_GSMTOOL noncore/comm/gsmtoolgsmtool.pro 44 CONFIG_GSMTOOL noncore/comm/gsmtoolgsmtool.pro
45 CONFIG_HANDWRITING inputmethods/handwritinghandwriting.pro 45 CONFIG_HANDWRITING inputmethods/handwritinghandwriting.pro
46 CONFIG_HELPBROWSER core/apps/helpbrowserhelpbrowser.pro 46 CONFIG_HELPBROWSER core/apps/helpbrowserhelpbrowser.pro
47 CONFIG_HOMEAPPLET core/applets/homeapplethomeapplet.pro 47 CONFIG_HOMEAPPLET core/applets/homeapplethomeapplet.pro
48 CONFIG_INTERFACES noncore/settings/networksettings/interfacesinterfaces.pro 48 CONFIG_INTERFACES noncore/settings/networksettings/interfacesinterfaces.pro
49 CONFIG_IRDAAPPLET core/applets/irdaappletirdaapplet.pro 49 CONFIG_IRDAAPPLET core/applets/irdaappletirdaapplet.pro
50 CONFIG_JUMPX inputmethods/jumpxjumpx.pro 50 CONFIG_JUMPX inputmethods/jumpxjumpx.pro
51 CONFIG_KBILL noncore/games/kbillkbill.pro 51 CONFIG_KBILL noncore/games/kbillkbill.pro
52 CONFIG_KCHECKERS noncore/games/kcheckerskcheckers.pro 52 CONFIG_KCHECKERS noncore/games/kcheckerskcheckers.pro
53 CONFIG_KEYBOARD inputmethods/keyboardkeyboard.pro 53 CONFIG_KEYBOARD inputmethods/keyboardkeyboard.pro
54 CONFIG_KEYPEBBLE noncore/comm/keypebblekeypebble.pro 54 CONFIG_KEYPEBBLE noncore/comm/keypebblekeypebble.pro
55 CONFIG_KEYVIEW development/keyviewkeyview.pro 55 CONFIG_KEYVIEW development/keyviewkeyview.pro
56 CONFIG_KJUMPX inputmethods/kjumpxkjumpx.pro 56 CONFIG_KJUMPX inputmethods/kjumpxkjumpx.pro
57 CONFIG_KPACMAN noncore/games/kpacmankpacman.pro 57 CONFIG_KPACMAN noncore/games/kpacmankpacman.pro
58 CONFIG_LANGUAGE noncore/settings/languagelanguage.pro 58 CONFIG_LANGUAGE noncore/settings/languagelanguage.pro
59 CONFIG_LAUNCHER-SETTINGS core/settings/launcherlauncher.pro 59 CONFIG_LAUNCHER-SETTINGS core/settings/launcherlauncher.pro
60 CONFIG_LAUNCHER_CORE core/launcherserver.pro 60 CONFIG_LAUNCHER_CORE core/launcherserver.pro
61 CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro 61 CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro
62 CONFIG_LIBFLASH core/multimedia/opieplayer/libflashlibflash.pro 62 CONFIG_LIBFLASH core/multimedia/opieplayer/libflashlibflash.pro
63CONFIG_LIBKATE noncore/apps/tinykate/libkate libkate.pro 63CONFIG_LIBKATE noncore/apps/tinykate/libkate libkate.pro
64 CONFIG_LIBMAD core/multimedia/opieplayer/libmadlibmad.pro 64 CONFIG_LIBMAD core/multimedia/opieplayer/libmadlibmad.pro
65 CONFIG_LIBMAIL noncore/mail/libmaillibmail.pro 65 CONFIG_LIBMAIL noncore/mail/libmaillibmail.pro
66 CONFIG_LIBMPEG3 core/multimedia/opieplayer/libmpeg3libmpeg3.pro 66 CONFIG_LIBMPEG3 core/multimedia/opieplayer/libmpeg3libmpeg3.pro
67 CONFIG_LIBOPIE libopielibopie.pro 67 CONFIG_LIBOPIE libopielibopie.pro
68 CONFIG_LIBOPIE2CORE libopie2/opiecoreopiecore.pro 68 CONFIG_LIBOPIE2CORE libopie2/opiecoreopiecore.pro
69 CONFIG_LIBOPIE2DB libopie2/opiedbopiedb.pro 69 CONFIG_LIBOPIE2DB libopie2/opiedbopiedb.pro
70 CONFIG_LIBOPIE2EXAMPLES libopie2/examplesexamples.pro 70 CONFIG_LIBOPIE2EXAMPLES libopie2/examplesexamples.pro
71 CONFIG_LIBOPIE2NET libopie2/opienetopienet.pro 71 CONFIG_LIBOPIE2NET libopie2/opienetopienet.pro
72 CONFIG_LIBOPIE2PIM libopie2/opiepimopiepim.pro 72 CONFIG_LIBOPIE2PIM libopie2/opiepimopiepim.pro
73 CONFIG_LIBOPIE2UI libopie2/opieuiopieui.pro 73 CONFIG_LIBOPIE2UI libopie2/opieuiopieui.pro
74 CONFIG_LIBOPIE2MM libopie2/opiemmopiemm.pro 74 CONFIG_LIBOPIE2MM libopie2/opiemmopiemm.pro
75 CONFIG_LIBOPIETOOTH noncore/net/opietooth/liblib.pro 75 CONFIG_LIBOPIETOOTH noncore/net/opietooth/liblib.pro
76 CONFIG_LIBOPIE_PIM libopie/pimpim.pro 76 CONFIG_LIBOPIE_PIM libopie/pimpim.pro
77 CONFIG_LIBQPE librarylibrary.pro 77 CONFIG_LIBQPE librarylibrary.pro
78 CONFIG_LIBQPE-X11 x11/libqpe-x11libqpe-x11.pro 78 CONFIG_LIBQPE-X11 x11/libqpe-x11libqpe-x11.pro
79 CONFIG_LIBSQL libsqllibsql.pro 79 CONFIG_LIBSQL libsqllibsql.pro
80CONFIG_LIBTREMOR core/multimedia/opieplayer/vorbis/tremor tremor.pro 80CONFIG_LIBTREMOR core/multimedia/opieplayer/vorbis/tremor tremor.pro
81CONFIG_LIBTREMORPLUGIN core/multimedia/opieplayer/vorbis libtremor.pro 81CONFIG_LIBTREMORPLUGIN core/multimedia/opieplayer/vorbis libtremor.pro
82 CONFIG_LIGHT-AND-POWER core/settings/light-and-powerlight-and-power.pro 82 CONFIG_LIGHT-AND-POWER core/settings/light-and-powerlight-and-power.pro
83 CONFIG_LIQUID noncore/styles/liquidliquid.pro 83 CONFIG_LIQUID noncore/styles/liquidliquid.pro
84 CONFIG_LOGOUTAPPLET core/applets/logoutappletlogoutapplet.pro 84 CONFIG_LOGOUTAPPLET core/applets/logoutappletlogoutapplet.pro
85 CONFIG_MAILIT noncore/net/mailit mailit.pro 85 CONFIG_MAILIT noncore/net/mailit mailit.pro
86 CONFIG_MEDIUMMOUNT noncore/settings/mediummountmediummount.pro 86 CONFIG_MEDIUMMOUNT noncore/settings/mediummountmediummount.pro
87 CONFIG_MEMORYAPPLET noncore/applets/memoryappletmemoryapplet.pro 87 CONFIG_MEMORYAPPLET noncore/applets/memoryappletmemoryapplet.pro
88 CONFIG_METAL noncore/styles/metalmetal.pro 88 CONFIG_METAL noncore/styles/metalmetal.pro
89 CONFIG_MINDBREAKER noncore/games/mindbreakermindbreaker.pro 89 CONFIG_MINDBREAKER noncore/games/mindbreakermindbreaker.pro
90 CONFIG_MINESWEEP noncore/games/minesweepminesweep.pro 90 CONFIG_MINESWEEP noncore/games/minesweepminesweep.pro
91 CONFIG_MOBILEMSG noncore/comm/mobilemsgmobilemsg.pro 91 CONFIG_MOBILEMSG noncore/comm/mobilemsgmobilemsg.pro
92 CONFIG_MODPLUG core/multimedia/opieplayer/modplugmodplug.pro 92 CONFIG_MODPLUG core/multimedia/opieplayer/modplugmodplug.pro
93 CONFIG_MULTIKEY inputmethods/multikeymultikey.pro 93 CONFIG_MULTIKEY inputmethods/multikeymultikey.pro
94 CONFIG_NETSYSTEMTIME noncore/settings/netsystemtimenetsystemtime.pro 94 CONFIG_NETSYSTEMTIME noncore/settings/netsystemtimenetsystemtime.pro
95 CONFIG_NETWORKAPPLET noncore/applets/networkappletnetworkapplet.pro 95 CONFIG_NETWORKAPPLET noncore/applets/networkappletnetworkapplet.pro
96 CONFIG_NETWORKSETUP noncore/settings/networksettingsnetworksettings.pro 96 CONFIG_NETWORKSETUP noncore/settings/networksettingsnetworksettings.pro
97 CONFIG_NOTESAPPLET noncore/applets/notesappletnotesapplet.pro 97 CONFIG_NOTESAPPLET noncore/applets/notesappletnotesapplet.pro
98 CONFIG_OAPP core/apps/oappoapp.pro 98 CONFIG_OAPP core/apps/oappoapp.pro
99 CONFIG_OBEX core/applets/obex2obex.pro 99 CONFIG_OBEX core/applets/obex2obex.pro
100 CONFIG_ODICT noncore/apps/odictodict.pro 100 CONFIG_ODICT noncore/apps/odictodict.pro
101 CONFIG_OIPKG core/apps/oipkgoipkg.pro 101 CONFIG_OIPKG core/apps/oipkgoipkg.pro
102 CONFIG_OPIE-CONSOLE noncore/apps/opie-consoleopie-console.pro 102 CONFIG_OPIE-CONSOLE noncore/apps/opie-consoleopie-console.pro
103 CONFIG_OPIE-LOGIN core/opie-loginopie-login.pro 103 CONFIG_OPIE-LOGIN core/opie-loginopie-login.pro
104 CONFIG_OPIE-READER noncore/apps/opie-readeropie-reader.pro 104 CONFIG_OPIE-READER noncore/apps/opie-readeropie-reader.pro
105 CONFIG_OPIE-SH noncore/tools/opie-shopie-sh.pro 105 CONFIG_OPIE-SH noncore/tools/opie-shopie-sh.pro
106 CONFIG_OPIE-SHEET noncore/apps/opie-sheetopie-sheet.pro 106 CONFIG_OPIE-SHEET noncore/apps/opie-sheetopie-sheet.pro
107 CONFIG_OPIE-WRITE noncore/apps/opie-writeopie-write.pro 107 CONFIG_OPIE-WRITE noncore/apps/opie-writeopie-write.pro
108 CONFIG_OPIEALARMcore/opiealarm 108 CONFIG_OPIEALARMcore/opiealarm
109 CONFIG_OPIEFTP noncore/net/opieftpopieftp.pro 109 CONFIG_OPIEFTP noncore/net/opieftpopieftp.pro
110 CONFIG_OPIEIRC noncore/net/opieircopieirc.pro 110 CONFIG_OPIEIRC noncore/net/opieircopieirc.pro
111 CONFIG_OPIEMAIL2noncore/mail mail.pro 111 CONFIG_OPIEMAIL2noncore/mail mail.pro
112 CONFIG_OPIEPLAYER core/multimedia/opieplayeropieplayer.pro 112 CONFIG_OPIEPLAYER core/multimedia/opieplayeropieplayer.pro
113 CONFIG_OPIEPLAYER2 noncore/multimedia/opieplayer2opieplayer2.pro 113 CONFIG_OPIEPLAYER2 noncore/multimedia/opieplayer2opieplayer2.pro
114 CONFIG_OPIE-RDESKTOP noncore/net/opierdesktopopierdesktop.pro 114 CONFIG_OPIE-RDESKTOP noncore/net/opierdesktopopierdesktop.pro
115 CONFIG_OPIEREC noncore/multimedia/opierecopierec.pro 115 CONFIG_OPIEREC noncore/multimedia/opierecopierec.pro
116 CONFIG_OPIETOOTH-APPLET noncore/net/opietooth/appletapplet.pro 116 CONFIG_OPIETOOTH-APPLET noncore/net/opietooth/appletapplet.pro
117 CONFIG_OPIETOOTH-MANAGER noncore/net/opietooth/managermanager.pro 117 CONFIG_OPIETOOTH-MANAGER noncore/net/opietooth/managermanager.pro
118 CONFIG_OSEARCH core/pim/osearchosearch.pro 118 CONFIG_OSEARCH core/pim/osearchosearch.pro
119 CONFIG_OXYGEN noncore/apps/oxygenoxygen.pro 119 CONFIG_OXYGEN noncore/apps/oxygenoxygen.pro
120 CONFIG_PARASHOOT noncore/games/parashootparashoot.pro 120 CONFIG_PARASHOOT noncore/games/parashootparashoot.pro
121 CONFIG_PICKBOARD inputmethods/pickboardpickboard.pro 121 CONFIG_PICKBOARD inputmethods/pickboardpickboard.pro
122 CONFIG_QASTEROIDS noncore/games/qasteroidsqasteroids.pro 122 CONFIG_QASTEROIDS noncore/games/qasteroidsqasteroids.pro
123 CONFIG_QASHMONEY noncore/apps/qashmoneyqashmoney.pro
123 CONFIG_QCOP core/apps/qcopqcop.pro 124 CONFIG_QCOP core/apps/qcopqcop.pro
124 CONFIG_QPDF noncore/graphics/qpdfqpdf.pro 125 CONFIG_QPDF noncore/graphics/qpdfqpdf.pro
125 CONFIG_QPDF2 noncore/graphics/qpdf2qpdf2.pro 126 CONFIG_QPDF2 noncore/graphics/qpdf2qpdf2.pro
126CONFIG_QUICKLAUNCHER core/tools/quicklauncher quicklauncher.pro 127CONFIG_QUICKLAUNCHER core/tools/quicklauncher quicklauncher.pro
127 CONFIG_QWS core/qwsqws.pro 128 CONFIG_QWS core/qwsqws.pro
128 CONFIG_REMOTE noncore/tools/remoteremote.pro 129 CONFIG_REMOTE noncore/tools/remoteremote.pro
129 CONFIG_RESTARTAPPLET core/applets/restartappletrestartapplet.pro 130 CONFIG_RESTARTAPPLET core/applets/restartappletrestartapplet.pro
130 CONFIG_RESTARTAPPLET2 core/applets/restartapplet2restartapplet2.pro 131 CONFIG_RESTARTAPPLET2 core/applets/restartapplet2restartapplet2.pro
131 CONFIG_ROTATEAPPLET core/applets/rotateappletrotateapplet.pro 132 CONFIG_ROTATEAPPLET core/applets/rotateappletrotateapplet.pro
132 CONFIG_ROTATION noncore/settings/rotationrotation.pro 133 CONFIG_ROTATION noncore/settings/rotationrotation.pro
133 CONFIG_RUNAPPLET core/applets/runappletrunapplet.pro 134 CONFIG_RUNAPPLET core/applets/runappletrunapplet.pro
134 CONFIG_SCREENSHOTAPPLET core/applets/screenshotappletscreenshotapplet.pro 135 CONFIG_SCREENSHOTAPPLET core/applets/screenshotappletscreenshotapplet.pro
135 CONFIG_SECURITY core/settings/securitysecurity.pro 136 CONFIG_SECURITY core/settings/securitysecurity.pro
136 CONFIG_SFCAVE noncore/games/sfcavesfcave.pro 137 CONFIG_SFCAVE noncore/games/sfcavesfcave.pro
137 CONFIG_SFCAVE-SDL noncore/games/sfcave-sdlsfcave-sdl.pro 138 CONFIG_SFCAVE-SDL noncore/games/sfcave-sdlsfcave-sdl.pro
138 CONFIG_SHOWIMG noncore/multimedia/showimgshowimg.pro 139 CONFIG_SHOWIMG noncore/multimedia/showimgshowimg.pro
139 CONFIG_SIMPLE noncore/tools/calc2/simplesimple.pro 140 CONFIG_SIMPLE noncore/tools/calc2/simplesimple.pro
140 CONFIG_SINGLE singlesingle.pro 141 CONFIG_SINGLE singlesingle.pro
141 CONFIG_SNAKE noncore/games/snakesnake.pro 142 CONFIG_SNAKE noncore/games/snakesnake.pro
142 CONFIG_SOLITAIRE noncore/games/solitairesolitaire.pro 143 CONFIG_SOLITAIRE noncore/games/solitairesolitaire.pro
143 CONFIG_SOUND noncore/settings/soundsound.pro 144 CONFIG_SOUND noncore/settings/soundsound.pro
144 CONFIG_SSHKEYS noncore/settings/sshkeyssshkeys.pro 145 CONFIG_SSHKEYS noncore/settings/sshkeyssshkeys.pro
145 CONFIG_SUSPENDAPPLET core/applets/suspendappletsuspendapplet.pro 146 CONFIG_SUSPENDAPPLET core/applets/suspendappletsuspendapplet.pro
146 CONFIG_SYSINFO noncore/apps/sysinfosysinfo.pro 147 CONFIG_SYSINFO noncore/apps/sysinfosysinfo.pro
147 CONFIG_TABLEVIEWER noncore/apps/tableviewertableviewer.pro 148 CONFIG_TABLEVIEWER noncore/apps/tableviewertableviewer.pro
148 CONFIG_TABMANAGER noncore/settings/tabmanagertabmanager.pro 149 CONFIG_TABMANAGER noncore/settings/tabmanagertabmanager.pro
149 CONFIG_TABOAPP core/apps/taboapptaboapp.pro 150 CONFIG_TABOAPP core/apps/taboapptaboapp.pro
150 CONFIG_TEST libsql/testtest.pro 151 CONFIG_TEST libsql/testtest.pro
151 CONFIG_TEST noncore/apps/opie-console/testtest.pro 152 CONFIG_TEST noncore/apps/opie-console/testtest.pro
152 CONFIG_TETRIX noncore/games/tetrixtetrix.pro 153 CONFIG_TETRIX noncore/games/tetrixtetrix.pro
153 CONFIG_TEXTEDIT core/apps/textedittextedit.pro 154 CONFIG_TEXTEDIT core/apps/textedittextedit.pro
154 CONFIG_THEME noncore/styles/themetheme.pro 155 CONFIG_THEME noncore/styles/themetheme.pro
155 CONFIG_TICTAC noncore/games/tictactictac.pro 156 CONFIG_TICTAC noncore/games/tictactictac.pro
156 CONFIG_TINYKATE noncore/apps/tinykatetinykate.pro 157 CONFIG_TINYKATE noncore/apps/tinykatetinykate.pro
157 CONFIG_TODAY core/pim/todaytoday.pro 158 CONFIG_TODAY core/pim/todaytoday.pro
158CONFIG_TODAY_ADDRESSBOOK core/pim/today/plugins/addressbook addressbook.pro 159CONFIG_TODAY_ADDRESSBOOK core/pim/today/plugins/addressbook addressbook.pro
159 CONFIG_TODAY_DATEBOOK core/pim/today/plugins/datebookdatebook.pro 160 CONFIG_TODAY_DATEBOOK core/pim/today/plugins/datebookdatebook.pro
160 CONFIG_TODAY_FORTUNE noncore/todayplugins/fortunefortune.pro 161 CONFIG_TODAY_FORTUNE noncore/todayplugins/fortunefortune.pro
161 CONFIG_TODAY_MAIL core/pim/today/plugins/mailmail.pro 162 CONFIG_TODAY_MAIL core/pim/today/plugins/mailmail.pro
162 CONFIG_TODAY_STOCKTICKER noncore/todayplugins/stockticker/stocktickerstockticker.pro 163 CONFIG_TODAY_STOCKTICKER noncore/todayplugins/stockticker/stocktickerstockticker.pro
163 CONFIG_TODAY_STOCKTICKERLIB noncore/todayplugins/stockticker/stocktickerlibstocktickerlib.pro 164 CONFIG_TODAY_STOCKTICKERLIB noncore/todayplugins/stockticker/stocktickerlibstocktickerlib.pro
164 CONFIG_TODAY_TODOLIST core/pim/today/plugins/todolisttodolist.pro 165 CONFIG_TODAY_TODOLIST core/pim/today/plugins/todolisttodolist.pro
165 CONFIG_TODAY_WEATHERnoncore/todayplugins/weather weather.pro 166 CONFIG_TODAY_WEATHERnoncore/todayplugins/weather weather.pro
166 CONFIG_TODO core/pim/todotodo.pro 167 CONFIG_TODO core/pim/todotodo.pro
167 CONFIG_UBROWSER noncore/net/ubrowserubrowser.pro 168 CONFIG_UBROWSER noncore/net/ubrowserubrowser.pro
168 CONFIG_UNIKEYBOARD inputmethods/unikeyboardunikeyboard.pro 169 CONFIG_UNIKEYBOARD inputmethods/unikeyboardunikeyboard.pro
169 CONFIG_USERMANAGER noncore/settings/usermanagerusermanager.pro 170 CONFIG_USERMANAGER noncore/settings/usermanagerusermanager.pro
170 CONFIG_VMEMO core/applets/vmemovmemo.pro 171 CONFIG_VMEMO core/applets/vmemovmemo.pro
171 CONFIG_VOLUMEAPPLET core/applets/volumeappletvolumeapplet.pro 172 CONFIG_VOLUMEAPPLET core/applets/volumeappletvolumeapplet.pro
172 CONFIG_VTAPPLET core/applets/vtappletvtapplet.pro 173 CONFIG_VTAPPLET core/applets/vtappletvtapplet.pro
173 CONFIG_WAVPLUGIN core/multimedia/opieplayer/wavpluginwavplugin.pro 174 CONFIG_WAVPLUGIN core/multimedia/opieplayer/wavpluginwavplugin.pro
174 CONFIG_WELLENREITER noncore/net/wellenreiterwellenreiter.pro 175 CONFIG_WELLENREITER noncore/net/wellenreiterwellenreiter.pro
175 CONFIG_WIRELESSAPPLET noncore/applets/wirelessappletwirelessapplet.pro 176 CONFIG_WIRELESSAPPLET noncore/applets/wirelessappletwirelessapplet.pro
176 CONFIG_WLAN noncore/settings/networksettings/wlanwlan.pro 177 CONFIG_WLAN noncore/settings/networksettings/wlanwlan.pro
177 CONFIG_PPP noncore/settings/networksettings/pppppp.pro 178 CONFIG_PPP noncore/settings/networksettings/pppppp.pro
178 CONFIG_WORDGAME noncore/games/wordgamewordgame.pro 179 CONFIG_WORDGAME noncore/games/wordgamewordgame.pro
179 CONFIG_ZSAFEnoncore/apps/zsafe zsafe.pro 180 CONFIG_ZSAFEnoncore/apps/zsafe zsafe.pro
180 CONFIG_MAIN_TAB_EXAMPLE examples/main-tabexample.pro 181 CONFIG_MAIN_TAB_EXAMPLE examples/main-tabexample.pro
181 CONFIG_SIMPLE_EXAMPLE examples/simpleexample.pro 182 CONFIG_SIMPLE_EXAMPLE examples/simpleexample.pro
182 CONFIG_SIMPLE_ICON examples/simple-iconexample.pro 183 CONFIG_SIMPLE_ICON examples/simple-iconexample.pro
183 CONFIG_SIMPLE_MAIN examples/simple-mainexample.pro 184 CONFIG_SIMPLE_MAIN examples/simple-mainexample.pro
184<<<<<<< packages 185<<<<<<< packages
185 CONFIG_SIMPLE_PIM examples/simple-pimexample.pro 186 CONFIG_SIMPLE_PIM examples/simple-pimexample.pro
186CONFIG_BIGSCREEN_EXAMPLE libopie/big-screen/example osplitter_mail.pro 187CONFIG_BIGSCREEN_EXAMPLE libopie/big-screen/example osplitter_mail.pro
187 188
188======= 189=======
189 CONFIG_SIMPLE_PIM examples/simple-pimexample.pro 190 CONFIG_SIMPLE_PIM examples/simple-pimexample.pro
190 CONFIG_APPLET_EXAMPLE examples/appletexample.pro 191 CONFIG_APPLET_EXAMPLE examples/appletexample.pro
191>>>>>>> 1.56 192>>>>>>> 1.56