* Add early shared account support (Database schema has changed)

* Update TODO
This commit is contained in:
2010-10-20 20:54:23 +02:00
parent 5b5637f53a
commit d800f23029
9 changed files with 89 additions and 7 deletions

View File

@@ -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;

View File

@@ -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);