CMusManager Class Reference
class CMusManager : public CBase |
Class to manager MultimediaSharing application.
Class CMusManager provides an interface to monitor the system's ability to initiate a MultimediaSharing session. Also, MultimediaSharing application can be started via this interface. Application can be ordered to close itself by calling the stop application function.
MultimediaSharing availability is a variable of a system that describes that is a MultimediaSharing session currently possible, or not. It depends on call state, network state, SIP profiles and SIP OPTIONS.
musmanagerclient.dll
Constructor & Destructor Documentation
CMusManager()
Example usage:
// replace <featureUID> with a real UID
#include <featmgr/featmgr.h>
#include <bldvariant.hrh> // for feature definitions
CMyClass::ConstructL()
{
// Sets up TLS, must be done before FeatureManager is used.
FeatureManager::InitializeLibL();
// Used in destructor.
iFeatMgrInitialized = ETrue;
}
CMyClass::ShowMenuL()
{
if ( FeatureManager::FeatureSupported( <featureUID> ) )
{
// Feature supported, show menu item associated with it.
}
}
CMyClass::~CMyClass()
{
// Do not call UnInitializeLib() if InitalizeLib() leaves.
if ( iFeatMgrInitialized )
{
// Frees the TLS. Must be done after FeatureManager is used.
FeatureManager::UnInitializeLib();
}
}
Member Functions Documentation
AvailabilityL()
Returns the current availability status.
ConstructL()
void | ConstructL | ( | ) | [private] |
ConstructL(MMusAvailabilityObserver *)
ExamineAvailabilityL()
IMPORT_C void | ExamineAvailabilityL | ( | ) | |
This function causes following things:
This function must be called before a MultimediaSharing session is tried to be established. Otherwise, the internal state of MultimediaSharing will remain as undefined. In that state, MultimediaSharing Manager will not start the application.
HandleCommandL(MultimediaSharing::TCommandType)
This function allows clients to request coomand's to be executed by the MUS manager server.
In erroneous cases, this function will leave with an error code that describes the error. Positive leave codes are defined in MultimediaSharing::TMusAvailabilityStatus.
HandleSipRequestL(TRequestType)
Orders MultimediaSharing subsystem to handle a SIP request. In some cases, this function call starts the application.
In erroneous cases, this function will leave with an error code that describes the error. Positive leave codes are defined in MultimediaSharing::TMusAvailabilityStatus.
NewL(MMusAvailabilityObserver *)
Creates Mus Manager instance allowing the clients to pass an observer interface through which the clients will be capable to listen for the availability state of Multimedia Sharing
NewLC(MMusAvailabilityObserver *)
Creates Mus Manager instance allowing the clients to pass an observer interface through which the clients will be capable to listen for the availability state of Multimedia Sharing Mus Manager instance is left on cleanup stack.
StartApplicationL(MultimediaSharing::TMusUseCase)
Starts the MultimediaSharing application
If the application can't be started, this function will leave with an error code that describes the error. Positive leave codes are defined in MultimediaSharing::TMusAvailabilityStatus.
StopApplicationL()
IMPORT_C void | StopApplicationL | ( | ) | |
This function causes the application to get a stop signal. Application will close itself smoothly.
Member Enumerations Documentation
Enum TRequestType
Enumerators
ESipOptions = 0x1028238D | |
ESipInviteDesired = 0x10282391 | |
ESipInviteNotDesired = 0x1028238D | |
Member Data Documentation
CMusManagerImpl * iImpl
The actual implementation of the interface. Own.
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.