transport: pass correct channel
[abstract.git] / report / aaBalanceSheetLoader.h
blob7247f5d333320679667941dc21ab171dbdf7f2fd
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: */
3 /*
4 * Copyright (C) 2008 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 AABALANCESHEETLOADER_H
23 #define AABALANCESHEETLOADER_H 1
25 #define AA_BALANCESHEET_CID \
26 {0xb9e95d64, 0xb9f9, 0x4a80, {0x86, 0xdb, 0x9b, 0x59, 0x9e, 0x8d, 0x7a, 0x2a}}
28 #include "aaISqlTransaction.h"
30 class aaISqlRequest;
31 class aaISqlFilter;
32 class aaBalanceSheet;
34 #ifdef DEBUG
35 #include "aaISqlRequest.h"
36 #include "aaISqlFilter.h"
37 #endif
39 class aaBalanceSheetLoader : public aaISqlTransaction
41 public:
42 aaBalanceSheetLoader();
43 NS_DECL_ISUPPORTS
44 NS_DECL_AAISQLTRANSACTION
46 private:
47 ~aaBalanceSheetLoader() {}
48 friend class aaReportTest;
50 nsCOMPtr<aaIBalanceSheetParam> mParam;
51 nsCOMPtr<aaISqlRequest> mBalanceLoader;
52 nsCOMPtr<aaISqlFilter> mBalanceFilter;
53 nsCOMPtr<aaISqlRequest> mIncomeLoader;
54 nsCOMPtr<aaISqlFilter> mIncomeFilter;
56 nsresult checkState();
57 nsresult loadList(aaISqliteChannel *aChannel, aaBalanceSheet *retval);
60 #endif /* AABALANCESHEETLOADER_H */