1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent tw=79 ft=cpp: */
4 * Copyright (C) 2007 Sergey Yanovich <ynvich@gmail.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef AABALANCESHEET_H
23 #define AABALANCESHEET_H 1
25 #define AA_BALANCESHEET_CID \
26 {0xb9e95d64, 0xb9f9, 0x4a80, {0x86, 0xdb, 0x9b, 0x59, 0x9e, 0x8d, 0x7a, 0x2a}}
27 #define AA_BALANCESHEET_CONTRACT_ID "@aasii.org/report/balance-sheet;1"
29 #include "aaIBalanceSheet.h"
31 class mozIStorageConnection
;
34 class nsIMutableArray
;
36 class aaBalanceSheet
: public aaIBalanceSheet
,
40 aaBalanceSheet(nsISupports
*aOuter
= 0);
41 virtual ~aaBalanceSheet();
45 NS_DECL_AAIBALANCESHEET
48 nsresult
Init() { return mConnection
? NS_OK
: NS_ERROR_INVALID_ARG
; }
50 friend class aaReportTest
;
52 nsCOMPtr
<mozIStorageConnection
> mConnection
;
53 nsCOMPtr
<aaILoadQuery
> mBalances
;
54 nsCOMPtr
<aaILoadQueryInternal
> mBalancesInternal
;
55 nsCOMPtr
<aaILoadQuery
> mIncomes
;
56 nsCOMPtr
<aaILoadQueryInternal
> mIncomesInternal
;
57 PRUint32 mBalanceCount
;
58 PRUint32 mIncomeCount
;
60 nsCOMPtr
<aaIStateFilter
> mBalanceFilter
;
61 nsCOMPtr
<aaIStateFilter
> mIncomeFilter
;
70 #endif /* AABALANCESHEET_H */