Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

AccountsDB.h File Reference

#include "Database.h"

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

struct  AccountFlags
 account flags for tight packing. More...

class  AccountsDB
 class to manipulate the accounts database. More...

struct  accountStructure
 unpacked structure of an account. More...

struct  packedAccountStructure
 the packed structure of an account. More...

struct  totalsStruct
 this structure contains the overall totals for all the selected accounts. More...


Defines

#define ACCOUNTSDB_TYPE   'DATA'
 type of the account database. More...

#define ACCOUNTSDB_NAME   "FreeCoins-Accounts"
 db name. More...


Enumerations

enum  sortOrder { soName, soAmount, soDate }
 sort order type. More...

enum  AccountType {
  BANK = 0, CREDIT = 1, INCOME = 2, EXPENSE = 3,
  EQUITY = 4
}
 possible account types. More...


Variables

AccountsDBaccounts_db
 unfortunatelly this is a bit messy :(. More...


Define Documentation

#define ACCOUNTSDB_NAME   "FreeCoins-Accounts"
 

db name.

Definition at line 29 of file AccountsDB.h.

#define ACCOUNTSDB_TYPE   'DATA'
 

type of the account database.

Copyright (C) 2000-2002 Vlad Mereuta <dizzy@users.sourceforge.net>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition at line 27 of file AccountsDB.h.


Enumeration Type Documentation

enum AccountType
 

possible account types.

Enumeration values:
BANK 
CREDIT 
INCOME 
EXPENSE 
EQUITY 

Definition at line 85 of file AccountsDB.h.

enum sortOrder
 

sort order type.

Enumeration values:
soName 
soAmount 
soDate 

Definition at line 42 of file AccountsDB.h.


Variable Documentation

AccountsDB* accounts_db
 

unfortunatelly this is a bit messy :(.

We need to be able to access this db from anywhere in the program (including the compareRecords function). The best solution I managed to come up with is defining the pointer in .c file, and exporting it in .h (tried defining it as static in .h only but did not work. Next we need to instatntiate the class (this is done in palmcoins.c) and set the pointer to a valid address

Definition at line 240 of file AccountsDB.h.


Generated on Thu Jan 16 23:11:12 2003 for FreeCoins by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002