Factories::CFactoryBase Class Reference
class Factories::CFactoryBase : public CBase
|
Factory Base class provides basic object managment functionlity and the ability for a factory to be load from another Dynamic Linked Library via the ECOM framework.
It also provides asynchronous destruction for it's managed objects (if required) but also copes with synchronous destruction, should a managed object get deleted by another entity.
Constructor & Destructor Documentation
CFactoryBase(TUid, CFactoryContainer &)
~CFactoryBase()
IMPORT_C
|
~CFactoryBase
|
(
|
)
|
[protected]
|
Member Functions Documentation
AddManagedObjectL(AFactoryObject &)
ConstructL(const TUid &)
IMPORT_C void
|
ConstructL
|
(
|
const
TUid
&
|
aDestroyUid
|
)
|
[protected]
|
ConstructL()
IMPORT_C void
|
ConstructL
|
(
|
)
|
[protected]
|
DeRegisterNotifier(const IFactoryNotify &)
IMPORT_C void
|
DeRegisterNotifier
|
(
|
const
IFactoryNotify
&
|
aFactoryNotify
|
)
|
|
Parameters
const
IFactoryNotify
& aFactoryNotify
|
The IFactoryNotify object that implements the callback
|
FindObject(MFactoryQuery &)
Find a factory based on criteria specified by aQuery
MFactoryQuery
Parameters
MFactoryQuery
& aQuery
|
a MFactoryQuery derived object implementing MFactoryQuery::Match
|
ManagedObjectBeingDeleted(AFactoryObject &)
IMPORT_C void
|
ManagedObjectBeingDeleted
|
(
|
AFactoryObject
&
|
aObject
|
)
|
[protected]
|
NewL(const TDesC8 &, const TUid &, CFactoryContainer &)
Create a new instance of a factory (cnstructed via ECOM using the name and the interfaceUId specified
-
Exceptions
-
leaves
|
with KErrNoMemory in out of memory conditions
|
Parameters
const
TDesC8
& aName
|
The name (string representation) of the factory
|
const
TUid
& aInterfaceUid
|
The interface Uid that ECOM should use to load the implementation
|
CFactoryContainer
& aParentContainer
|
The factory container the factory should become a member of
|
NewL(const TUid &, CFactoryContainer &)
Create a new instance of a factory (cnstructed via ECOM using the name and the interfaceUId specified
-
Exceptions
-
leaves
|
with KErrNoMemory in out of memory conditions
|
Parameters
const
TUid
& aImplementationUid
|
The interface Uid that ECOM should use to load the implementation
|
CFactoryContainer
& aParentContainer
|
The factory container the factory should become a member of
|
RegisterNotifierL(const IFactoryNotify &)
IMPORT_C void
|
RegisterNotifierL
|
(
|
const
IFactoryNotify
&
|
aFactoryNotify
|
)
|
|
Parameters
const
IFactoryNotify
& aFactoryNotify
|
The IFactoryNotify object that implements the callback
|
RemoveManagedObject(AFactoryObject &)
IMPORT_C void
|
RemoveManagedObject
|
(
|
AFactoryObject
&
|
aObject
|
)
|
[protected]
|
RemoveManagedObject(TInt)
void
|
RemoveManagedObject
|
(
|
TInt
|
aIndex
|
)
|
[private]
|
SignalCreation(AFactoryObject &)
SignalDeletion(AFactoryObject &)
Uid()
IMPORT_C
TUid
|
Uid
|
(
|
)
|
const
|
Getter for the identifier of the object specified during construction
Member Data Documentation
TUid
iDestroyUid
TUid
|
iDestroyUid
|
[private]
|
RArray< IFactoryNotify > iFactoryNotify
TUid
iFactoryUid
TUid
|
iFactoryUid
|
[private]
|
RArray< TFactoryObjectEntry > iObjects
CFactoryContainer & iParentContainer
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.