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 <abstract/aacore.h>
25 #include "nsIGenericFactory.h"
26 #include "nsEmbedString.h"
27 #include "nsIMutableArray.h"
28 #include "nsCOMArray.h"
29 #include "nsIClassInfoImpl.h"
31 /* Project includes */
32 #include <abstract/aaParamFactory.h>
33 #include <abstract/base/aaIEntity.h>
34 #include <abstract/base/aaIResource.h>
35 #include <abstract/base/aaIFlow.h>
36 #include <abstract/base/aaIFact.h>
37 #include <abstract/base/aaIBalance.h>
38 #include <abstract/base/aaIEvent.h>
39 #include <abstract/base/aaIQuote.h>
40 #include <abstract/base/aaITransaction.h>
42 #include "aaResource.h"
48 #include "aaTransaction.h"
49 #include "aaIncomeFlow.h"
51 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaEntity
)
52 NS_GENERIC_FACTORY_CONSTRUCTOR(aaResource
)
53 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFlow
)
54 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFact
)
55 NS_GENERIC_FACTORY_CONSTRUCTOR(aaState
)
56 NS_GENERIC_FACTORY_CONSTRUCTOR(aaEvent
)
57 NS_GENERIC_FACTORY_CONSTRUCTOR(aaQuote
)
58 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTransaction
)
59 NS_GENERIC_FACTORY_CONSTRUCTOR(aaIncomeFlow
)
61 NS_DECL_CLASSINFO(aaResource
)
62 NS_DECL_CLASSINFO(aaEvent
)
64 static const nsModuleComponentInfo components
[] =
69 AA_ENTITY_CONTRACT_ID
,
75 AA_RESOURCE_CONTRACT_ID
,
78 NS_CI_INTERFACE_GETTER_NAME(aaResource
),
80 &NS_CLASSINFO_NAME(aaResource
)
103 AA_EVENT_CONTRACT_ID
,
106 NS_CI_INTERFACE_GETTER_NAME(aaEvent
),
108 &NS_CLASSINFO_NAME(aaEvent
)
113 AA_QUOTE_CONTRACT_ID
,
119 AA_TRANSACTION_CONTRACT_ID
,
120 aaTransactionConstructor
125 AA_INCOMEFLOW_CONTRACT_ID
,
126 aaIncomeFlowConstructor
129 NS_IMPL_NSGETMODULE(aabase
, components
)