diff -r 000000000000 -r 1bce908db942 multimediacommsengine/tsrc/MCETestUI/src/notifyDialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/multimediacommsengine/tsrc/MCETestUI/src/notifyDialog.cpp Tue Feb 02 01:04:58 2010 +0200 @@ -0,0 +1,145 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + +// INCLUDES +#include "notifyDialog.h" +#include + +// CONSTANTS +const TInt KBufLength = 100; + + +// ============================ MEMBER FUNCTIONS ============================== + +// ---------------------------------------------------------------------------- +// CSessionEstablishValuesDialog::CSessionEstablishValuesDialog( CRtpEngine::TSessionType* ) +// . +// ---------------------------------------------------------------------------- +// +CNotifyDialog::CNotifyDialog( TSessionEstablishValues* aParams ) : + iParams( aParams ) + { + // No implementation required + } + +// ---------------------------------------------------------------------------- +// CSessionEstablishValuesDialog::PreLayoutDynInitL() +// . +// ---------------------------------------------------------------------------- +// +void CNotifyDialog::PreLayoutDynInitL() + { + + CEikNumberEditor* timeOut = static_cast( + Control( ESessionTimeOut ) ); + TInt num = 36000; + timeOut->SetNumber(num); + TBuf defaultValue; + + iParams->headers.Copy(KDefaultAcceptContactValue); + CEikEdwin* headers = static_cast( + Control( ESessionHeaders ) ); + defaultValue.Copy(iParams->headers); + headers->SetTextL(&defaultValue); + headers->SetCursorPosL(defaultValue.Length(),EFalse); + + + /* + iParams->contentType.Copy(KContentType); + CEikEdwin* contentType = static_cast( + Control( EEstablishContentType ) ); + defaultValue.Copy(iParams->contentType); + contentType->SetTextL(&defaultValue); + contentType->SetCursorPosL(defaultValue.Length(),EFalse); + + iParams->content.Copy(KNone); + CEikEdwin* content = static_cast( + Control( EEstablishContent ) ); + defaultValue.Copy(iParams->content); + content->SetTextL(&defaultValue); + content->SetCursorPosL(defaultValue.Length(),EFalse); + + iParams->contentHeaders.Copy(KNone); + CEikEdwin* contentHeaders = static_cast( + Control( EEstablishContentHeaders ) ); + defaultValue.Copy(iParams->contentHeaders); + contentHeaders->SetTextL(&defaultValue); + contentHeaders->SetCursorPosL(defaultValue.Length(),EFalse); + */ + + CAknForm::PreLayoutDynInitL(); + } + +// ---------------------------------------------------------------------------- +// CNotifyDialog::OkToExitL( TInt ) +// . +// ---------------------------------------------------------------------------- +// + +TBool CNotifyDialog::OkToExitL( TInt aKey ) + { + if ( aKey == EEikCmdCanceled ) + { + // Cancel pressed. Just exit. + return ETrue; + } + CEikNumberEditor* timeOut = static_cast( + Control( ESessionTimeOut ) ); + iParams->timeOut = timeOut->Number(); + + TBuf buffer; + + CEikEdwin* headers = static_cast( + Control( ESessionHeaders ) ); + headers->GetText(buffer); + iParams->headers = buffer; + + + + /* + CEikEdwin* contentType = static_cast( + Control( EEstablishContentType ) ); + contentType->GetText(buffer); + iParams->contentType = buffer; + + CEikEdwin* content = static_cast( + Control( EEstablishContent ) ); + content->GetText(buffer); + iParams->content = buffer; + + CEikEdwin* contentHeaders = static_cast( + Control( EEstablishContentHeaders ) ); + contentHeaders->GetText(buffer); + iParams->contentHeaders = buffer; + + */ + + return ETrue; + } + +// ---------------------------------------------------------------------------- +// CNotifyDialog::~CNotifyDialog() +// . +// ---------------------------------------------------------------------------- +// +CNotifyDialog::~CNotifyDialog() + { + return; + }