//==================================================================
// 
//==================================================================  
void CMTPPictBridgeEnumerator::ConstructL()
    {
    OstTraceFunctionEntry0( CMTPPICTBRIDGEENUMERATOR_CONSTRUCTL_ENTRY );
    iSingletons.OpenL();
    OstTraceFunctionExit0( CMTPPICTBRIDGEENUMERATOR_CONSTRUCTL_EXIT );
    }
Example #2
0
CDeviceProxy::CDeviceProxy(TUint aDeviceId)
:	iId(aDeviceId)
	{
    OstTraceFunctionEntry0( CDEVICEPROXY_CDEVICEPROXY_CONS_ENTRY );    
	}
/**
Second phase constructor
*/
void CMTPImageDpSetObjectReferences::ConstructL()
    {
    OstTraceFunctionEntry0( CMTPIMAGEDPSETOBJECTREFERENCES_CONSTRUCTL_ENTRY );
    OstTraceFunctionExit0( CMTPIMAGEDPSETOBJECTREFERENCES_CONSTRUCTL_EXIT );
    }
/**
Constructor.
*/    
CMTPPlaybackProperty::CMTPPlaybackProperty()
    {    
    OstTraceFunctionEntry0( DUP1_CMTPPLAYBACKPROPERTY_CMTPPLAYBACKPROPERTY_ENTRY );
    OstTraceFunctionExit0( DUP1_CMTPPLAYBACKPROPERTY_CMTPPLAYBACKPROPERTY_EXIT );
    }
/**
Destructor
*/
CMTPUsbSicClassController::~CMTPUsbSicClassController()
	{
	OstTraceFunctionEntry0( CMTPUSBSICCLASSCONTROLLER_CMTPUSBSICCLASSCONTROLLER_ENTRY );
	Cancel();
	OstTraceFunctionExit0( CMTPUSBSICCLASSCONTROLLER_CMTPUSBSICCLASSCONTROLLER_EXIT );
	}
Example #6
0
// --------------------------------------------------------------------------
// 
// 
// --------------------------------------------------------------------------
//
void CPtpTimer::ConstructL()    
    {
    OstTraceFunctionEntry0( CPTPTIMER_CONSTRUCTL_ENTRY );   
    CTimer::ConstructL();
    OstTraceFunctionExit0( CPTPTIMER_CONSTRUCTL_EXIT );
    }
TBool CMTPPlaybackProperty::IsDefaultPropertyValueL(const TMTPPbCtrlData& aValue) const
    {
    OstTraceFunctionEntry0( CMTPPLAYBACKPROPERTY_ISDEFAULTPROPERTYVALUEL_ENTRY );
    
    TInt result(EFalse);

    switch(aValue.iDevPropCode)
        {
    case EMTPDevicePropCodePlaybackRate:
        {
        if(aValue.iPropValInt32.Value() == KMTPDefaultPlaybackRate)
            {
            result = ETrue;
            }
        }
        break;
            
    case EMTPDevicePropCodeVolume:
        {
        if(iPlaybackVolumeData == NULL)
            {
            if(aValue.iPropValUint32.Value() == KMTPDefaultPlaybackVolume)
                {
                result = ETrue;
                }
            }
        else
            {
            if(aValue.iPropValUint32.Value() == iPlaybackVolumeData->DefaultVolume())
                {
                result = ETrue;
                }
            }
        }
        break;

    case EMTPDevicePropCodePlaybackObject:
        {
        if(aValue.iPropValUint32.Value() == KMTPDefaultPlaybackObject)
            {
            result = ETrue;
            }
        }
        break;
        
    case EMTPDevicePropCodePlaybackContainerIndex:
        {
        if(aValue.iPropValUint32.Value() == KMTPDefaultPlaybackIndex)
            {
            result = ETrue;
            }
        }
        break;
        
    case EMTPDevicePropCodePlaybackPosition:
        {
        if(aValue.iPropValUint32.Value() == KMTPDefaultPlaybackPosition)
            {
            result = ETrue;
            }
        }
        break;
        
    default:
        LEAVEIFERROR(KErrArgument, 
                OstTrace0( TRACE_ERROR, CMTPPLAYBACKPROPERTY_ISDEFAULTPROPERTYVALUEL, "error argument" ));
        }

    
    OstTraceFunctionExit0( CMTPPLAYBACKPROPERTY_ISDEFAULTPROPERTYVALUEL_EXIT );
    return result;
    }
	/** MContentHandler::OnProcessingInstructionL()
	*/
	void CSBEParserProxy::OnProcessingInstructionL(const TDesC8& aTarget, const TDesC8& aData, TInt aErrorCode)
		{
        OstTraceFunctionEntry0( CSBEPARSERPROXY_ONPROCESSINGINSTRUCTIONL_ENTRY );
        iTransientObserver->OnProcessingInstructionL( aTarget, aData, aErrorCode );
		OstTraceFunctionExit0( CSBEPARSERPROXY_ONPROCESSINGINSTRUCTIONL_EXIT );
		}
/*!
	From ClockAppControllerIf.
	Returns a pointer to SettingsUtility.

	\return SettingsUtility* Pointer to SettingsUtility object.
	\sa ClockAppControllerIf
 */
SettingsUtility* ClockAppControllerIfImpl::settingsUtility()
{
	OstTraceFunctionEntry0( CLOCKAPPCONTROLLERIFIMPL_SETTINGSUTILITY_ENTRY );
	OstTraceFunctionExit0( CLOCKAPPCONTROLLERIFIMPL_SETTINGSUTILITY_EXIT );
	return mSettingsUtility;
}
	/** MContentHandler::OnIgnorableWhiteSpaceL()
	*/
	void CSBEParserProxy::OnIgnorableWhiteSpaceL(const TDesC8& aBytes, TInt aErrorCode)
		{
        OstTraceFunctionEntry0( CSBEPARSERPROXY_ONIGNORABLEWHITESPACEL_ENTRY );
        iTransientObserver->OnIgnorableWhiteSpaceL( aBytes, aErrorCode );
		OstTraceFunctionExit0( CSBEPARSERPROXY_ONIGNORABLEWHITESPACEL_EXIT );
		}
	/** MContentHandler::OnSkippedEntityL()
	*/
	void CSBEParserProxy::OnSkippedEntityL(const RString& aName, TInt aErrorCode)
		{
        OstTraceFunctionEntry0( CSBEPARSERPROXY_ONSKIPPEDENTITYL_ENTRY );
        iTransientObserver->OnSkippedEntityL( aName, aErrorCode );
		OstTraceFunctionExit0( CSBEPARSERPROXY_ONSKIPPEDENTITYL_EXIT );
		}
	/** MContentHandler::OnEndPrefixMappingL()
	*/
	void CSBEParserProxy::OnEndPrefixMappingL(const RString& aPrefix, TInt aErrorCode)
		{
        OstTraceFunctionEntry0( CSBEPARSERPROXY_ONENDPREFIXMAPPINGL_ENTRY );
        iTransientObserver->OnEndPrefixMappingL( aPrefix, aErrorCode );
		OstTraceFunctionExit0( CSBEPARSERPROXY_ONENDPREFIXMAPPINGL_EXIT );
		}
	/** MContentHandler::OnContentL()
	*/
	void CSBEParserProxy::OnContentL(const TDesC8& aBytes, TInt aErrorCode)
		{
        OstTraceFunctionEntry0( CSBEPARSERPROXY_ONCONTENTL_ENTRY );
        iTransientObserver->OnContentL( aBytes, aErrorCode );
		OstTraceFunctionExit0( CSBEPARSERPROXY_ONCONTENTL_EXIT );
		}
/*!
   Destructor.
 */
WlanWizardPageInternal::~WlanWizardPageInternal()
{
    OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGEINTERNAL_WLANWIZARDPAGEINTERNAL_ENTRY );
    OstTraceFunctionExit0( DUP1_WLANWIZARDPAGEINTERNAL_WLANWIZARDPAGEINTERNAL_EXIT );
}
EXPORT_C CMTPSvcDeleteServicePropList::~CMTPSvcDeleteServicePropList()
	{    
	OstTraceFunctionEntry0( CMTPSVCDELETESERVICEPROPLIST_CMTPSVCDELETESERVICEPROPLIST_DES_ENTRY );
	delete iDeleteServicePropList;
	OstTraceFunctionExit0( CMTPSVCDELETESERVICEPROPLIST_CMTPSVCDELETESERVICEPROPLIST_DES_EXIT );
	}
/*!
	From ClockAppControllerIf.
	Returns a pointer to AlarmClient.

	\return AlarmClient* Pointer to AlarmClient object.
	\sa ClockAppControllerIf
 */
AlarmClient* ClockAppControllerIfImpl::alarmClient()
{
	OstTraceFunctionEntry0( CLOCKAPPCONTROLLERIFIMPL_ALARMCLIENT_ENTRY );
	OstTraceFunctionExit0( CLOCKAPPCONTROLLERIFIMPL_ALARMCLIENT_EXIT );
	return mAlarmClient;
}
void CMTPSvcDeleteServicePropList::ConstructL()
	{
	OstTraceFunctionEntry0( CMTPSVCDELETESERVICEPROPLIST_CONSTRUCTL_ENTRY );
	iDeleteServicePropList = CMTPTypeDeleteServicePropList::NewL();
	OstTraceFunctionExit0( CMTPSVCDELETESERVICEPROPLIST_CONSTRUCTL_EXIT );
	}
/*!
	From ClockAppControllerIf.
	Issues a request to ClockViewManager to switch to a given view.

	\param viewId The id of the view to be switched to.
	\sa ClockAppControllerIf
 */
void ClockAppControllerIfImpl::switchToView(ClockViews viewId)
{
	OstTraceFunctionEntry0( CLOCKAPPCONTROLLERIFIMPL_SWITCHTOVIEW_ENTRY );
	mAppController->mViewManager->showView(viewId);
	OstTraceFunctionExit0( CLOCKAPPCONTROLLERIFIMPL_SWITCHTOVIEW_EXIT );
}
Example #19
0
// --------------------------------------------------------------------------
// 
// 
// --------------------------------------------------------------------------
//
CPtpTimer::~CPtpTimer()
    {
    OstTraceFunctionEntry0( CPTPTIMER_CPTPTIMER_DES_ENTRY );
    Cancel();
    OstTraceFunctionExit0( CPTPTIMER_CPTPTIMER_DES_EXIT );
    }
/*!
	From ClockAppControllerIf.
	Returns a pointer to timezoneClient.

	\return TimezoneClient* Pointer to TimezoneClient object.
	\sa ClockAppControllerIf
 */
TimezoneClient* ClockAppControllerIfImpl::timezoneClient()
{
	OstTraceFunctionEntry0( CLOCKAPPCONTROLLERIFIMPL_TIMEZONECLIENT_ENTRY );
	OstTraceFunctionExit0( CLOCKAPPCONTROLLERIFIMPL_TIMEZONECLIENT_EXIT );
	return mTimeZoneClient;
}
/**
Destructor.
*/    
CMTPPlaybackProperty::~CMTPPlaybackProperty()
    {    
    OstTraceFunctionEntry0( CMTPPLAYBACKPROPERTY_CMTPPLAYBACKPROPERTY_ENTRY );
    delete iPlaybackVolumeData;
    OstTraceFunctionExit0( CMTPPLAYBACKPROPERTY_CMTPPLAYBACKPROPERTY_EXIT );
    }
// ---------------------------------------------------------------------------------
//  CUpnpTmServerDescriptionProvider::GetFile
//
// ---------------------------------------------------------------------------------
//
TInt CUpnpTmServerDescriptionProvider::GetFile( const TDesC8& /*aUri*/, RFile& aFile )
    {
    OstTraceFunctionEntry0( CUPNPTMSERVERDESCRIPTIONPROVIDER_GETFILE_ENTRY );
    return ( aFile.Open( iFs, iFilePath, EFileShareReadersOnly | EFileRead ));  
    }
/**
Second-phase constructor.
*/        
void CMTPPlaybackProperty::ConstructL()
    {
    OstTraceFunctionEntry0( CMTPPLAYBACKPROPERTY_CONSTRUCTL_ENTRY );
    OstTraceFunctionExit0( CMTPPLAYBACKPROPERTY_CONSTRUCTL_EXIT );
    }
// ---------------------------------------------------------------------------------
//  CUpnpTmServerDescriptionProvider::~CUpnpTmServerDescriptionProvider
//
// ---------------------------------------------------------------------------------
//
CUpnpTmServerDescriptionProvider::~CUpnpTmServerDescriptionProvider()
    {
    OstTraceFunctionEntry0( CUPNPTMSERVERDESCRIPTIONPROVIDER_CUPNPTMSERVERDESCRIPTIONPROVIDER_ENTRY );
    iFs.Close();
    OstTraceFunctionExit0( CUPNPTMSERVERDESCRIPTIONPROVIDER_CUPNPTMSERVERDESCRIPTIONPROVIDER_EXIT );
    }
/**
Second phase constructor.
*/
void CMTPUsbSicClassController::ConstructL()
	{
	OstTraceFunctionEntry0( CMTPUSBSICCLASSCONTROLLER_CONSTRUCTL_ENTRY );
	OstTraceFunctionExit0( CMTPUSBSICCLASSCONTROLLER_CONSTRUCTL_EXIT );
	}
// ---------------------------------------------------------------------------------
//  CUpnpTmServerDescriptionProvider::ConstructL
//
// ---------------------------------------------------------------------------------
//
void CUpnpTmServerDescriptionProvider::ConstructL()
    {
    OstTraceFunctionEntry0( CUPNPTMSERVERDESCRIPTIONPROVIDER_CONSTRUCTL_ENTRY );
    User::LeaveIfError( iFs.Connect() );        
    OstTraceFunctionExit0( CUPNPTMSERVERDESCRIPTIONPROVIDER_CONSTRUCTL_EXIT );
    }
/**
Destructor
*/    
CMTPImageDpSetObjectReferences::~CMTPImageDpSetObjectReferences()
    {
    OstTraceFunctionEntry0( CMTPIMAGEDPSETOBJECTREFERENCES_CMTPIMAGEDPSETOBJECTREFERENCES_DES_ENTRY );
    delete iReferences;
    OstTraceFunctionExit0( CMTPIMAGEDPSETOBJECTREFERENCES_CMTPIMAGEDPSETOBJECTREFERENCES_DES_EXIT );
    }
// ---------------------------------------------------------------------------------
//  CUpnpTmServerDescriptionProvider::OnServiceDescription
//
// ---------------------------------------------------------------------------------
//
TInt CUpnpTmServerDescriptionProvider::OnServiceDescription( 
                                        CUpnpDeviceDescriptionRequest& aRequest )
    {
    OstTraceFunctionEntry0( CUPNPTMSERVERDESCRIPTIONPROVIDER_ONSERVICEDESCRIPTION_ENTRY );
    return OnRequest( aRequest );
    }
Example #29
0
void CMTPDeviceDataProvider::ProcessRequestPhaseL(TMTPTransactionPhase aPhase, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection)
    {
    OstTraceFunctionEntry0( CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL_ENTRY );
    TUint16 opCode( aRequest.Uint16( TMTPTypeRequest::ERequestOperationCode ) );    
    TInt index = LocateRequestProcessorL(aRequest, aConnection);
    __ASSERT_DEBUG(index != KErrNotFound, Panic(EMTPDevDpNoMatchingProcessor));
    MMTPRequestProcessor* processor = iActiveProcessors[index];
    iActiveProcessor = index;
    iActiveProcessorRemoved = EFalse;
    TBool result = processor->HandleRequestL(aRequest, aPhase);
    if (iActiveProcessorRemoved)
	    {
	    processor->Release(); // destroy the processor
	    }
    else if (result)
	    {
	    processor->Release();    	
	    iActiveProcessors.Remove(index);
	    }
    iActiveProcessor = -1;
    
    OstTrace1(TRACE_NORMAL, CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, "opCode = 0x%x", opCode);
    OstTrace1(TRACE_NORMAL, DUP1_CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, 
            "TranPort UID = 0x%x", iFrameWork.ConnectionMgr().TransportUid().iUid);
    OstTrace1(TRACE_NORMAL, DUP2_CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, "CommandState = 0x%x", iCommandState);
    const static TInt32 KMTPUsbTransportUid = 0x102827B2;

    if((EMTPOpCodeGetDeviceInfo == opCode)&&(KMTPUsbTransportUid == iFrameWork.ConnectionMgr().TransportUid().iUid))
        {
        OstTrace0(TRACE_NORMAL, DUP3_CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, "EMTPOpCodeGetDeviceInfo == opCode");
        //If GetDeviceInfo comes and there is no OpenSession before, the timer will start. And tread the host as Mac. 
        //Only the first GetDeviceInfo in one session will start the timer.
        if((EIdle == iCommandState)&&(NULL == iDeviceInfoTimer))
            {
            OstTrace0(TRACE_NORMAL, DUP4_CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, 
                    "EMTPOpCodeGetDeviceInfo == opCode, start timer");
            
            iCommandState = EStartDeviceInfoTimer;
            iDeviceInfoTimer = CMTPDeviceInfoTimer::NewL(*this);
            iDeviceInfoTimer->Start();
            }
        else
            {
            OstTrace0(TRACE_NORMAL, DUP5_CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, 
                    "EMTPOpCodeGetDeviceInfo == opCode, Not start timer");
            }
        }
    else
       {       
       OstTrace0(TRACE_NORMAL, DUP6_CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, 
               "EMTPOpCodeGetDeviceInfo != opCode");
       if((EMTPOpCodeOpenSession == opCode)&&(EIdle == iCommandState))
            {
            OstTrace0(TRACE_NORMAL, DUP7_CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, 
                    "EMTPOpCodeGetDeviceInfo == opCode, set CommandState to be EOpenSession");
            iCommandState = EOpenSession;
            }
       
       if(iDeviceInfoTimer)
           {
           OstTrace0(TRACE_NORMAL, DUP8_CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, 
                   "iDeviceInfoTimer != NULL, stop timer");
           delete iDeviceInfoTimer;
           iDeviceInfoTimer = NULL;
           }
       else
           {  
           OstTrace0(TRACE_NORMAL, DUP9_CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL, 
                   "iDeviceInfoTimer == NULL, NOT stop timer");
           }
       }    
    OstTraceFunctionExit0( CMTPDEVICEDATAPROVIDER_PROCESSREQUESTPHASEL_EXIT );
    }
/*!
    Constructor       
 */
WlanLoginView::WlanLoginView(WlanLoginMainWindow* mainWindow):
    mMainWindow(mainWindow),
    mDocLoader(new WlanLoginDocumentLoader(mainWindow)),
    mProgressBar(NULL),
    mScrollAreaContent(NULL),
    mWebView(NULL),
    mNextAction(NULL),
    mFirstIctsOkResult(true)
{   
    OstTraceFunctionEntry0(WLANLOGINVIEW_WLANLOGINVIEW_ENTRY);
    
    loadDocml();
    
    setTitleBarVisible(false);
    setStatusBarVisible(false);
    
    // Set white background to content widget
    QPixmap pixmap(10,10);
    pixmap.fill(Qt::white);
    QGraphicsPixmapItem *pixmapItem = new QGraphicsPixmapItem(pixmap);
    mScrollAreaContent->setBackgroundItem(pixmapItem);
    
    mWebView->page()->setNetworkAccessManager(mMainWindow->application()->engine()->networkAccessManager());
    
    bool connectStatus = connect(
        mWebView,
        SIGNAL(loadStarted()),
        this,
        SLOT(handleLoadStarted())); 
    Q_ASSERT(connectStatus == true);
    
    connectStatus = connect(
        mWebView,
        SIGNAL(loadProgress(int)),
        this,
        SLOT(handleLoadProgress(int))); 
    Q_ASSERT(connectStatus == true);
    
    connectStatus = connect(
        mWebView,
        SIGNAL(loadFinished(bool)),
        this,
        SLOT(handleLoadFinished(bool)));
    Q_ASSERT(connectStatus == true);
    
    connectStatus = connect(
    mWebView,
    SIGNAL(urlChanged(const QUrl&)),
    this,
    SLOT(handleUrlChanged(const QUrl&)));
    Q_ASSERT(connectStatus == true);
    
    connectStatus = connect(
        mWebView->page(),
        SIGNAL(formSubmitted()),
        this,
        SLOT(handleFormSubmitted()));
    Q_ASSERT(connectStatus == true);
    
    connectStatus = connect(
        mCancelAction,
        SIGNAL(triggered()),
        this,
        SLOT(handleCancelAction()));
    Q_ASSERT(connectStatus == true);
    
    connectStatus = connect(
        mNextAction,
        SIGNAL(triggered()),
        this,
        SLOT(handleNextAction()));
    Q_ASSERT(connectStatus == true);
    
    show();
    
    OstTraceFunctionExit0(WLANLOGINVIEW_WLANLOGINVIEW_EXIT);
}