* Add early shared account support (Database schema has changed)
* Update TODO
This commit is contained in:
@@ -167,7 +167,7 @@ void KissCount::DeleteAccount(Account& ac)
|
||||
std::vector<Account>::iterator it;
|
||||
int i;
|
||||
|
||||
_db->DeleteAccount(ac);
|
||||
_db->DeleteAccount(_user, ac);
|
||||
for (i=0, it=_user->_accounts.begin(); it !=_user->_accounts.end(); it++, i++)
|
||||
if (it->id == ac.id)
|
||||
{
|
||||
@@ -176,6 +176,11 @@ void KissCount::DeleteAccount(Account& ac)
|
||||
}
|
||||
}
|
||||
|
||||
void KissCount::AddSharedAccount(Account& ac, const wxString& granted)
|
||||
{
|
||||
_db->AddSharedAccount(ac, granted);
|
||||
}
|
||||
|
||||
wxString KissCount::AddCategory(Category& category)
|
||||
{
|
||||
wxString id;
|
||||
|
||||
@@ -61,6 +61,7 @@ public:
|
||||
wxString AddAccount(Account& ac);
|
||||
void UpdateAccount(Account& ac);
|
||||
void DeleteAccount(Account& ac);
|
||||
void AddSharedAccount(Account& ac, const wxString& granted);
|
||||
|
||||
wxString AddCategory(Category& category);
|
||||
void UpdateCategory(Category& category);
|
||||
|
||||
Reference in New Issue
Block a user