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 #include "xpcom-config.h"
25 #include "nsIGenericFactory.h"
26 #include "nsIMutableArray.h"
27 #include "nsCOMArray.h"
28 #include "nsIClassInfoImpl.h"
30 /* Project includes */
31 #include "aaParamFactory.h"
32 #include "aaTimeFrame.h"
42 #include "aaTransaction.h"
43 #include "aaIncomeFlow.h"
45 #include "aaBaseKeys.h"
47 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTimeFrame
)
48 NS_GENERIC_FACTORY_CONSTRUCTOR(aaEntity
)
49 NS_GENERIC_FACTORY_CONSTRUCTOR(aaAsset
)
50 NS_GENERIC_FACTORY_CONSTRUCTOR(aaMoney
)
51 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFlow
)
52 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFact
)
53 NS_GENERIC_FACTORY_CONSTRUCTOR(aaState
)
54 NS_GENERIC_FACTORY_CONSTRUCTOR(aaEvent
)
55 NS_GENERIC_FACTORY_CONSTRUCTOR(aaRule
)
56 NS_GENERIC_FACTORY_CONSTRUCTOR(aaQuote
)
57 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTransaction
)
58 NS_GENERIC_FACTORY_CONSTRUCTOR(aaIncomeFlow
)
59 NS_GENERIC_FACTORY_CONSTRUCTOR(aaIncome
)
61 NS_DECL_CLASSINFO(aaAsset
)
62 NS_DECL_CLASSINFO(aaMoney
)
63 NS_DECL_CLASSINFO(aaEvent
)
64 NS_DECL_CLASSINFO(aaRule
)
65 NS_DECL_CLASSINFO(aaQuote
)
66 NS_DECL_CLASSINFO(aaIncome
)
68 static const nsModuleComponentInfo components
[] =
72 AA_TIMEFRAME_CONTRACT
,
73 aaTimeFrameConstructor
}
86 NS_CI_INTERFACE_GETTER_NAME(aaAsset
),
88 &NS_CLASSINFO_NAME(aaAsset
)
96 NS_CI_INTERFACE_GETTER_NAME(aaMoney
),
98 &NS_CLASSINFO_NAME(aaMoney
)
124 NS_CI_INTERFACE_GETTER_NAME(aaEvent
),
126 &NS_CLASSINFO_NAME(aaEvent
)
134 NS_CI_INTERFACE_GETTER_NAME(aaRule
),
136 &NS_CLASSINFO_NAME(aaRule
)
144 NS_CI_INTERFACE_GETTER_NAME(aaQuote
),
146 &NS_CLASSINFO_NAME(aaQuote
)
151 AA_TRANSACTION_CONTRACT
,
152 aaTransactionConstructor
157 AA_INCOMEFLOW_CONTRACT
,
158 aaIncomeFlowConstructor
166 NS_CI_INTERFACE_GETTER_NAME(aaIncome
),
168 &NS_CLASSINFO_NAME(aaIncome
)
171 NS_IMPL_NSGETMODULE(aabase
, components
)