First runnable version
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
#define APP_VERSION "0.3"
|
||||
|
||||
#define ESCAPE_CHARS(s) s
|
||||
#define ESCAPE_CHARS(s) s.replace("\"", "\\\"");
|
||||
/*{ \
|
||||
if (s.Find(wxT("\\\"")) == wxNOT_FOUND) \
|
||||
s.Replace(wxT("\""), wxT("\\\""), true); \
|
||||
@@ -40,7 +40,7 @@
|
||||
s.Replace(wxT("\'"), wxT("\\\'"), true); \
|
||||
}
|
||||
*/
|
||||
#define UNESCAPE_CHARS(s) s
|
||||
#define UNESCAPE_CHARS(s) s.replace("\\\"", "\"");
|
||||
/*{ \
|
||||
s.Replace(wxT("\\\""), wxT("\""), true); \
|
||||
s.Replace(wxT("\\\'"), wxT("\'"), true); \
|
||||
@@ -57,14 +57,14 @@ public:
|
||||
KissCount(const char* bdd_filename);
|
||||
~KissCount();
|
||||
|
||||
std::list<std::string> GetUsers();
|
||||
bool IsValidUser(const std::string& user, const std::string& password);
|
||||
void LoadUser(const std::string& user);
|
||||
std::list<QString> GetUsers();
|
||||
bool IsValidUser(const QString& user, const QString& password);
|
||||
void LoadUser(const QString& user);
|
||||
User* GetUser();
|
||||
void ChangePassword(const std::string& password);
|
||||
bool UserExists(const std::string& name);
|
||||
void ChangeName(const std::string& name);
|
||||
void NewUser(const std::string& name);
|
||||
void ChangePassword(const QString& password);
|
||||
bool UserExists(const QString& name);
|
||||
void ChangeName(const QString& name);
|
||||
void NewUser(const QString& name);
|
||||
|
||||
void LoadYear(int year, bool force=false);
|
||||
|
||||
@@ -82,10 +82,10 @@ public:
|
||||
int AddAccount(Account& ac);
|
||||
void UpdateAccount(Account& ac);
|
||||
void DeleteAccount(Account& ac, int replacement);
|
||||
void AddSharedAccount(Account& ac, const std::string& granted);
|
||||
void RemoveSharedAccount(Account& ac, const std::string& granted);
|
||||
std::map<int, int> getSharedAccountOwners(int account);
|
||||
int getSharedAccountOwner(int account);
|
||||
void AddSharedAccount(Account& ac, const QString& granted);
|
||||
void RemoveSharedAccount(Account& ac, int granted);
|
||||
std::map<QString, QString> getSharedAccountOwners(int account);
|
||||
QString getSharedAccountOwner(int account);
|
||||
|
||||
int AddCategory(Category& category);
|
||||
void UpdateCategory(Category& category);
|
||||
@@ -96,11 +96,11 @@ public:
|
||||
void GenerateMonth(int monthFrom, int yearFrom, int monthTo, int yearTo);
|
||||
void KillMe();
|
||||
|
||||
void SetLanguage(std::string language);
|
||||
void SetOperationOrder(const std::string& order);
|
||||
const std::string& GetOperationOrder();
|
||||
void SetLanguage(QString language);
|
||||
void SetOperationOrder(const QString& order);
|
||||
const QString& GetOperationOrder();
|
||||
|
||||
std::vector<Operation>* Search(std::string* description, QDate* dateFrom, QDate* dateTo,
|
||||
std::vector<Operation>* Search(QString* description, QDate* dateFrom, QDate* dateTo,
|
||||
int* amountFrom, int* amountTo,
|
||||
std::vector<int> categories, int types, std::vector<int> accounts);
|
||||
|
||||
@@ -117,20 +117,20 @@ public:
|
||||
std::map<int, double>* GetNotChecked(int month, int year);
|
||||
std::map<int, double>* GetVirtualAmount(int month, int year);
|
||||
|
||||
static QFont ExtractFont(std::string);
|
||||
static std::string CompactFont(const QFont& font);
|
||||
static QFont ExtractFont(QString);
|
||||
static QString CompactFont(const QFont& font);
|
||||
|
||||
static void RegisterImportEngine(ImportEngine* engine);
|
||||
static void UnRegisterImportEngine(ImportEngine* engine);
|
||||
|
||||
std::string GetImportEngineExtensions();
|
||||
ImportEngine* GetImportEngine(std::string path);
|
||||
QString GetImportEngineExtensions();
|
||||
ImportEngine* GetImportEngine(QString path);
|
||||
|
||||
static void RegisterExportEngine(ExportEngine* engine);
|
||||
static void UnRegisterExportEngine(ExportEngine* engine);
|
||||
|
||||
std::string GetExportEngineExtensions();
|
||||
ExportEngine* GetExportEngine(std::string path);
|
||||
QString GetExportEngineExtensions();
|
||||
ExportEngine* GetExportEngine(QString path);
|
||||
|
||||
void UpdateImportPattern();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user