EXPORT_C const TPtrC CUrl::Component(TComponent aType) const { TInt start = KCUrlInvalidCharPos; TInt end = KCUrlInvalidCharPos; TComponent type(aType); if (aType == EUrlFileName) type = EUrlPath; Part(type, *iUrlDes, start,end); if (start == KCUrlInvalidCharPos || end == KCUrlInvalidCharPos) return KNullDesC(); TInt length = end - start +1; if (end == (*iUrlDes).Length()) length--; TPtrC component((*iUrlDes).Mid(start, length)); if (aType == EUrlFileName) { TInt slashPos = component.LocateReverse('/'); if (slashPos == KErrNotFound) return KNullDesC(); else component.Set(component.Right(component.Length() - (slashPos +1))); } return component; }
void UT_CPELogEvent::T_CPELogEvent_SaveL4L( ) { TLogString test; _LIT( KVoipAddress, "*****@*****.**" ); iMockContext->ExpectCallL( "CPELogInfo::CallState" ). ReturnsL<TPEState>( EPEStateIdle ); iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ). ReturnsL( test ); iMockContext->ExpectCallL( "CPELogHandling::LogStringMissed" ). ReturnsL( test ); iMockContext->ExpectCallL( "CPELogInfo::PhoneNumberId" ). ReturnsL( EPEUnknownNumber ); iMockContext->ExpectCallL( "CPELogInfo::EventType" ). ReturnsL( CPELogInfo::EPEVideoCallEvent ); iMockContext->ExpectCallL( "CPELogInfo::CurrentLine" ). ReturnsL( CCCECallParameters::ECCELineTypeAux ); iMockContext->ExpectCallL( "CPELogInfo::CallDirection" ). ReturnsL( RMobileCall::EMobileTerminated ). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::Name" ). ReturnsL( KNullDesC() ); iMockContext->ExpectCallL( "CPELogInfo::PhoneNumber" ). ReturnsL( KNullDesC() ); iMockContext->ExpectCallL( "CPELogInfo::VoipAddress" ). ReturnsL( KVoipAddress()). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::MyAddress" ). ReturnsL( KNullDesC()); iMockContext->ExpectCallL( "CPELogInfo::Duration" ). ReturnsL( 0 ); iMockContext->ExpectCallL( "CPELogInfo::ContactLink"). ReturnsL( KNullDesC() ). TimesL( 4 ); iMockContext->ExpectCallL( "CPELogInfo::CallState" ). ReturnsL<TPEState>( EPEStateIdle ). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::MissedCall" ). ReturnsL( ETrue ); iMockContext->ExpectCallL( "CPELogHandlingCommand::AddEvent"); iCPELogEvent->SaveL(); EUNIT_ASSERT_EQUALS( KErrNone, iMockContext->VerifyExpectations() ); }
void CEmTubePlaylistEntry::ImportL( RFileReadStream& aStream ) { TInt l = aStream.ReadInt32L(); if( l ) { iLocation = HBufC::NewL( l ); TPtr pLocation( iLocation->Des() ); aStream.ReadL( pLocation, l ); } else { iLocation = KNullDesC().AllocL(); } l = aStream.ReadInt32L(); if( l ) { iName = HBufC::NewL( l ); TPtr pName( iName->Des() ); aStream.ReadL( pName, l ); } else { iName = KNullDesC().AllocL(); } iPlayCount = aStream.ReadInt32L(); iType = (TEmTubePlaylistEntryType)aStream.ReadInt32L(); TReal t = aStream.ReadReal64L(); iTime = TTime( Int64( t ) ); }
// ----------------------------------------------------------------------------- // CPIMAgnToDoAdapter::ExportItemL // (other items were commented in a header) // ----------------------------------------------------------------------------- // void CPIMAgnToDoAdapter::ExportItemL(const MPIMToDoItem& aItem, CCalEntry& aEntry, TBool aResetEntry) { JELOG2(EPim); if (aResetEntry) { // Reset native entry for exporting new data aEntry.SetSummaryL(KNullDesC()); aEntry.SetDescriptionL(KNullDesC()); aEntry.SetPriorityL(0); aEntry.SetCompletedL(EFalse, aEntry.CompletedTimeL()); } // Export item data to the native ToDo calendar entry const MPIMItemData& itemData = aItem.ItemData(); CArrayFix<TPIMField>* fields = itemData.FieldsLC(); // Add default values to the calendar entry AddDefaultValuesToEntryL(itemData, aEntry); // Convert each field to the native ToDo calendar entry TInt count = fields->Count(); for (TInt i = 0; i < count; i++) { TPIMToDoField field = static_cast<TPIMToDoField>(fields->At(i)); ConvertToAgnL(field, aEntry, itemData); } CleanupStack::PopAndDestroy(fields); }
void CNcdExtendedInstallInfo::ConstructL() { DLTRACEIN(("")); CNcdPurchaseInstallInfo::BaseConstructL(); iMimeType = KNullDesC().AllocL(); iParameter = KNullDesC().AllocL(); }
// ----------------------------------------------------------------------------- // CProfileExtraTonesImpl::ConstructL // Symbian 2nd phase constructor can leave. // ----------------------------------------------------------------------------- // void CProfileExtraTonesImpl::ConstructL() { iIMMessageAlertTone = KNullDesC().AllocL(); iEmailAlertTone = KNullDesC().AllocL(); iVideoCallRingingTone = KNullDesC().AllocL(); iReminderTone = KNullDesC().AllocL(); iClockAlarmTone = KNullDesC().AllocL(); }
void CBaseMrInfoObject::ConstructL() { iSubject = KNullDesC().AllocL(); iDescription = KNullDesC().AllocL(); iLocation = KNullDesC().AllocL(); iUid = KNullDesC().AllocL(); iOrganizer = CBaseMrAttendee::NewL(); }
void UT_CPELogEvent::T_CPELogEvent_SaveL5L( ) { TLogString test; _LIT( KMyNumber, "040665544" ); _LIT( KMyName, "Tester" ); iMockContext->ExpectCallL( "CPELogInfo::CallState" ). ReturnsL<TPEState>( EPEStateIdle ); iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ). ReturnsL( test ); iMockContext->ExpectCallL( "CPELogHandling::LogStringInAlt" ). ReturnsL( test ); iMockContext->ExpectCallL( "CPELogInfo::PhoneNumberId" ). ReturnsL( EPEUnknownNumber ); iMockContext->ExpectCallL( "CPELogInfo::EventType" ). ReturnsL( CPELogInfo::EPEUnknownEvent ); iMockContext->ExpectCallL( "CPELogInfo::CurrentLine" ). ReturnsL( CCCECallParameters::ECCELineTypeAux ). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::CallDirection" ). ReturnsL( RMobileCall::EMobileTerminated ). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::Name" ). ReturnsL( KMyName() ). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::PhoneNumber" ). ReturnsL( KMyNumber() ). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::VoipAddress" ). ReturnsL( KNullDesC()); iMockContext->ExpectCallL( "CPELogInfo::MyAddress" ). ReturnsL( KNullDesC()); iMockContext->ExpectCallL( "CPELogInfo::Duration" ). ReturnsL( 0 ); iMockContext->ExpectCallL( "CPELogInfo::ContactLink"). ReturnsL( KNullDesC() ). TimesL( 4 ); iMockContext->ExpectCallL( "CPELogHandlingCommand::AddEvent"); iCPELogEvent->SaveL(); EUNIT_ASSERT_EQUALS( KErrNone, iMockContext->VerifyExpectations() ); }
void CNcdNodeLink::ConstructL() { iParentIdentifier = CNcdNodeIdentifier::NewL(); iRequestParentIdentifier = CNcdNodeIdentifier::NewL(); iMetaDataIdentifier = CNcdNodeIdentifier::NewL(); iTimeStamp = KNullDesC().AllocL(); iCatalogsSourceName = KNullDesC().AllocL(); iServerUri = KNullDesC().AllocL(); iRemoteUri = KNullDesC().AllocL(); iMetadataTimeStamp = KNullDesC().AllocL(); }
void UT_CPELogEvent::T_CPELogEvent_SaveLL( ) { TLogString test; _LIT( KMyAddress, "*****@*****.**" ); _LIT( KVoipAddress, "*****@*****.**" ); iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ). ReturnsL( test ); iMockContext->ExpectCallL( "CPELogHandling::LogStringOut" ). ReturnsL( test ); iMockContext->ExpectCallL( "CPELogInfo::PhoneNumberId" ). ReturnsL( EPEUnknownNumber ); iMockContext->ExpectCallL( "CPELogInfo::EventType" ). ReturnsL( CPELogInfo::EPEVoiceEvent ); iMockContext->ExpectCallL( "CPELogInfo::CurrentLine" ). ReturnsL( CCCECallParameters::ECCELineTypePrimary ). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::CallDirection" ). ReturnsL( RMobileCall::EMobileOriginated ); iMockContext->ExpectCallL( "CPELogInfo::Name" ). ReturnsL( KNullDesC() ); iMockContext->ExpectCallL( "CPELogInfo::PhoneNumber" ). ReturnsL( KNullDesC() ); iMockContext->ExpectCallL( "CPELogInfo::VoipAddress" ). ReturnsL( KVoipAddress()). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::MyAddress" ). ReturnsL( KMyAddress()). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::Duration" ). ReturnsL( 0 ); iMockContext->ExpectCallL( "CPELogInfo::ContactLink"). ReturnsL( KNullDesC() ). TimesL( 4 ); iMockContext->ExpectCallL( "CPELogHandlingCommand::AddEvent"); iCPELogEvent->SaveL(); EUNIT_ASSERT_EQUALS( KErrNone, iMockContext->VerifyExpectations() ); }
void UT_CPELogEvent::T_CPELogEvent_SaveL3L( ) { TLogString test; _LIT( KMyAddress, "*****@*****.**" ); _LIT( KVoipAddress, "*****@*****.**" ); iMockContext->ExpectCallL( "CPELogInfo::ForcedCompletion" ). ReturnsL( ETrue ); iMockContext->ExpectCallL( "CPELogInfo::CurrentLine" ). ReturnsL( CCCECallParameters::ECCELineTypePrimary ). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::CallDirection" ). ReturnsL( RMobileCall::EMobileTerminated ). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogHandling::LogStringIn" ). ReturnsL( test ); iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ). ReturnsL( test ); iMockContext->ExpectCallL( "CPELogInfo::Name" ). ReturnsL( KNullDesC() ); iMockContext->ExpectCallL( "CPELogInfo::PhoneNumber" ). ReturnsL( KNullDesC() ); iMockContext->ExpectCallL( "CPELogInfo::VoipAddress" ). ReturnsL( KVoipAddress()). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::MyAddress" ). ReturnsL( KMyAddress()). TimesL( 2 ); iMockContext->ExpectCallL( "CPELogInfo::Duration" ). ReturnsL( 0 ); iMockContext->ExpectCallL( "CPELogHandlingCommand::ChangeEvent"); iCPELogEvent->SetAdded(); iCPELogEvent->SaveL(); EUNIT_ASSERT_EQUALS( KErrNone, iMockContext->VerifyExpectations() ); }
// ---------------------------------------------------------------------------------------- // CTerminalControlServer::StartProcessByFullNameL // ---------------------------------------------------------------------------------------- void CTerminalControlServer::StartProcessByFullNameL ( const TDesC8& aName ) { RDEBUG("CTerminalControlServer::StartProcessByFullNameL"); // 8bit to 16bit string // HBufC* fileNameBuf = HBufC::NewLC( aName.Length() ); TPtr fileName(fileNameBuf->Des()); fileName.Copy( aName ); // Connect to application architecture server // RApaLsSession apaLs; User::LeaveIfError( apaLs.Connect() ); CleanupClosePushL( apaLs ); // Create command line for process // CApaCommandLine* cmd = CApaCommandLine::NewLC(); cmd->SetExecutableNameL( fileName ); cmd->SetDocumentNameL( KNullDesC() ); cmd->SetCommandL( EApaCommandRun ); // Start application // User::LeaveIfError( apaLs.StartApp( *cmd ) ); CleanupStack::PopAndDestroy( cmd ); CleanupStack::PopAndDestroy( &apaLs ); CleanupStack::PopAndDestroy( fileNameBuf ); }
// ----------------------------------------------------------------------------- // CLibxml2Tester::CompressBufferGZIPL // test GZIP Compress to buffer // (other items were commented in a header). // ----------------------------------------------------------------------------- // TInt CLibxml2Tester::CompressBufferGZIPL(CStifItemParser& aItem) { _LIT(tem,"Error in code"); // resize heap he = UserHeap::ChunkHeap(&KNullDesC(), 0, 20000000); if(!he) { User::Leave(100); } oldHeap = User::SwitchHeap(he);// Change heaps cleanup=CTrapCleanup::New(); //-- TInt trapResult; // start trap TRAP(trapResult, TPtrC pInput; aItem.GetNextString( pInput ); TPtrC pOutput; aItem.GetNextString( pOutput ); HBufC8* bufferOutput = CnvUtfConverter::ConvertFromUnicodeToUtf8L(pOutput); CleanupStack::PushL( bufferOutput ); TPtr8 pOutput8 = bufferOutput->Des(); HBufC8* buffer = ReadFileToBufferL( pInput ); CleanupStack::PushL( buffer ); // CVtcpBufferManager::NewL( in.Ptr() ,in.Length()); CTestBufferManager* bm = CTestBufferManager::NewLC( buffer->Ptr(), buffer->Size() ); CEZCompressor* compressor = CEZCompressor::NewLC( *bm ); // decompressor->DecompressL( pOutput8, buffer->Des() ); while ( compressor->DeflateL() ) { /* empty */ } TPtrC8 out=bm->OutputData(); RFs aRFs; User::LeaveIfError(aRFs.Connect()); CleanupClosePushL(aRFs); RFile fOut; User::LeaveIfError ( fOut.Replace( aRFs, pOutput, EFileWrite ) ); CleanupClosePushL( fOut ); User::LeaveIfError ( fOut.Write(out ) ); //WriteFileFromBufferL(pOutput,out) CleanupStack::PopAndDestroy( 6 ); );
void T_CntImageRescaler::testEmptyArgs() { test.Next(_L("Empty arguments")); TPath path; TInt err; TRAP(err, iRescaler->ResizeImageL(KNullDesC(), path)); test(err == KErrArgument); TRAP(err, iRescaler->ResizeImageL(path, KNullDesC())); test(err == KErrArgument); TRAP(err, iRescaler->ResizeImageL(path, path)); test(err == KErrArgument); }
// --------------------------------------------------------------------------- // Constructor // --------------------------------------------------------------------------- // CConnMonWlanNetwork::CConnMonWlanNetwork( const TBuf<KMaxNameLength>& aName, TUint aConnectionMode, TUint aSignalStrength, TUint aSecurityMode, TUint aSecurityModeV2, TUint aProtectedSetupSupport, const TBuf8<KWlanBssId>& aBssId, const TDesC& aVendorData ) : iName( aName ), iConnectionMode( aConnectionMode ), iSignalStrength( aSignalStrength ), iSecurityMode( aSecurityMode ), iWlanBssId( aBssId ), iVendorData( NULL ), iSecurityModeV2( aSecurityModeV2 ), iProtectedSetupSupport( aProtectedSetupSupport ) { if ( aVendorData != KNullDesC() && aVendorData.Length() > 0 ) { // Can't leave here, copy contents only if enough memory iVendorData = HBufC::New( aVendorData.Length() ); if ( iVendorData ) { iVendorData->Des().Copy( aVendorData ); } } }
TPtrC CPosLmNameIndex::CIndexItem::Name() const { if ( iName ) return *iName; else return KNullDesC(); }
void CNcdNodeFolderProxy::InternalizeNodeSeenFolderL() { DLTRACEIN(("")); if ( iNodeSeenFolder ) { iNodeSeenFolder->InternalizeL(); } else { // Create the object. // Get the handle at first. TInt handle( 0 ); User::LeaveIfError( ClientServerSession().SendSync( NcdNodeFunctionIds::ENcdNodeSeenFolderHandle, KNullDesC(), handle, Handle() ) ); DLINFO(( "handle: %d", handle )); iNodeSeenFolder = CNcdNodeSeenFolderProxy::NewL( ClientServerSession(), handle, *this ); } }
TPtrC CIAPObject::GetImeiNbr() const { if(!iImeiNbr) { return KNullDesC(); } return TPtrC(*iImeiNbr); }
TPtrC CIAPObject::GetIAPName() const { if(!iIAPName) { return KNullDesC(); } return TPtrC(*iIAPName); }
// --------------------------------------------------------------------------- // Copy Constructor // --------------------------------------------------------------------------- // EXPORT_C CConnMonWlanNetwork* CConnMonWlanNetwork::NewL( CConnMonWlanNetwork& aConnMonWlanNetwork ) { CConnMonWlanNetwork* wlanNet; if ( aConnMonWlanNetwork.iVendorData ) { wlanNet = new( ELeave ) CConnMonWlanNetwork( aConnMonWlanNetwork.iName, aConnMonWlanNetwork.iConnectionMode, aConnMonWlanNetwork.iSignalStrength, aConnMonWlanNetwork.iSecurityMode, aConnMonWlanNetwork.iSecurityModeV2, aConnMonWlanNetwork.iProtectedSetupSupport, aConnMonWlanNetwork.iWlanBssId, aConnMonWlanNetwork.iVendorData->Des() ); } else { wlanNet = new( ELeave ) CConnMonWlanNetwork( aConnMonWlanNetwork.iName, aConnMonWlanNetwork.iConnectionMode, aConnMonWlanNetwork.iSignalStrength, aConnMonWlanNetwork.iSecurityMode, aConnMonWlanNetwork.iSecurityModeV2, aConnMonWlanNetwork.iProtectedSetupSupport, aConnMonWlanNetwork.iWlanBssId, KNullDesC() ); } return wlanNet; }
// --------------------------------------------------------------------------- // RPeninputServerImpl::StartThread // Creates the server thread on WINS and server process on MARM. // Access to the thread/process creation is controlled with // a global mutex which allows only one client thread to do // the actual server creation in WINS. In MARM the creation of // new server exits with KErrAlreadyExits if another thread // already created it. // --------------------------------------------------------------------------- // TInt RPeninputServerImpl::StartThreadL() { if(iWaitScheduler) return KErrLaunchingServer; TInt ret = KErrNone; // check if server already exists TFindServer findPeninputServer( KPeninputServerName ); TFullName name; if (findPeninputServer.Next( name ) == KErrNone) { // if server is already running return immediately return KErrAlreadyExists; } // request status which gets signaled when server has been initialized RProcess server; User::LeaveIfError(server.Create(KPeninputServerExe,KNullDesC())); TRequestStatus status; //User::WaitForRequest(status); iObserver = CPeninputServerObserver::NewL(this, 0); server.Rendezvous(iObserver->RequestStatus()); server.Resume(); server.Close(); iWaitScheduler = CPeninputServerWaiter::NewL(); iWaitScheduler->Start(); ret = iWaitScheduler->Error(); return ret; }
void CNcdBundleFolder::ConstructL( const CNcdNodeIdentifier& aIdentifier ) { DLTRACEIN(("")); CNcdParentOfTransparentNode::ConstructL( aIdentifier ); AssignDesL( iViewType, KNullDesC() ); DLTRACEOUT(("")); }
void CEmTubePlaylist::ConstructL( RFileReadStream& aStream ) { TInt l = aStream.ReadInt32L(); if( l ) { iName = HBufC::NewL( l ); TPtr pName( iName->Des() ); aStream.ReadL( pName, l ); } else { iName = KNullDesC().AllocL(); } iType = (TEmTubePlaylistType)aStream.ReadInt32L(); iFlags = aStream.ReadInt32L(); TInt count = aStream.ReadInt32L(); for(TInt i=0;i<count;i++) { CEmTubePlaylistEntry* e = CEmTubePlaylistEntry::NewLC(); e->ImportL( aStream ); iEntries.AppendL( e ); CleanupStack::Pop( e ); } }
static TInt StartDummyServer() { const TUidType serverUid(KNullUid, TUid::Uid(KSendAsServerExeUid)); TRequestStatus started( KRequestPending ); RProcess server; TInt err = server.Create(KDummyServerExe, KNullDesC(), serverUid); if( err != KErrNone ) { return err; } TRequestStatus status; server.Rendezvous(status); if( status != KRequestPending ) { server.Kill(0); // abort start-up } else { server.Resume(); // wait for server start-up. } User::WaitForRequest(status); err = (server.ExitType() == EExitPanic ) ? KErrGeneral : status.Int(); server.Close(); return err; }
void CNcdNodeProxy::ConstructL( ) { DLTRACEIN(("this-ptr as MNcdNode: %X", static_cast<MNcdNode*>( this ))); // Register the interfaces of this object MNcdNode* node( this ); AddInterfaceL( CCatalogsInterfaceIdentifier::NewL( node, this, MNcdNode::KInterfaceUid ) ); // Make sure that at least some values are inserted to the link descriptors. // So, the references returned from functions of this class will contain at // least something. iTimestamp = KNullDesC().AllocL(); iCatalogSourceName = KNullDesC().AllocL(); iExpiredTime = 0; // Get the data from the server side. // It may be possible that actually not much is received // because the node may be in uninitialized state. // But at least the namespace and id information should be gotten. TRAPD( trapError, InternalizeL() ); // This node can not exist if the identifier data is not set. // So, if node identifier is not set this should leave and // prevent the creation of the node. if ( iNodeIdentifier == NULL ) { User::LeaveIfError( trapError ); } // Also make sure that parent identifier is set at least to empty value if ( iParentIdentifier == NULL ) { // If we have to set the parent identifier here, it means that // the node link was not set yet. // If node link was set, then the parent id was also set to correct value. // And, then this value should not be set here. iParentIdentifier = CNcdNodeIdentifier::NewL(); } if ( iRealParentIdentifier == NULL ) { iRealParentIdentifier = CNcdNodeIdentifier::NewL(); } DLTRACEOUT(("")); }
LOCAL_C void testTLitC() { test.Start(_L("All members")); test (_L("")==KNullDesC); // operator const TDesC& test (KNullDesC()==TPtrC()); // operator() const TDesC* pNull=&KNullDesC; // operator& test (pNull->Compare(_L(""))==0); test (&testByRef(KNullDesC)==&KNullDesC); // operator const TRefByValue<const TDesC> #if defined(_UNICODE) test (_L16("")==KNullDesC); // operator const TDesC& test (KNullDesC()==TPtrC16()); // operator() const TDesC16* pNull16=&KNullDesC; // operator& test (pNull16->Compare(_L16(""))==0); test (&testByRef16(KNullDesC)==&KNullDesC); // operator const TRefByValue<const TDesC> #else test (_L8("")==KNullDesC); // operator const TDesC& test (KNullDesC()==TPtrC8()); // operator() const TDesC8* pNull8=&KNullDesC; // operator& test (pNull8->Compare(_L8(""))==0); test (&testByRef8(KNullDesC)==&KNullDesC); // operator const TRefByValue<const TDesC> #endif // test.Next(_L("Literal values")); const TDesC& t1=KLitTest1; test (t1.Length()==1); test (t1[0]=='1'); test (t1==_L("1")); const TDesC& t12=KLitTest12; test (t12.Length()==2); test (t12[0]=='1'); test (t12==_L("12")); const TDesC& t123=KLitTest123; test (t123.Length()==3); test (t123[0]=='1'); test (t123==_L("123")); const TDesC& t1234=KLitTest1234; test (t1234.Length()==4); test (t1234[0]=='1'); test (t1234==_L("1234")); const TDesC& talpha=KLitTestalpha; test (talpha.Length()==26); test (talpha[0]=='a'); test (talpha==_L("abcdefghijklmnopqrstuvwxyz")); // test.End(); }
// ----------------------------------------------------------------------------- // CMetaDataField::Data // ----------------------------------------------------------------------------- // TPtrC CMetaDataField::Data() const { if(iData) { return iData->Des(); } return KNullDesC(); }
EXPORT_C const TDesC& CAgnAttachment::Label() const { if (iLabel) { return *iLabel; } return KNullDesC(); }
/** returns the attachment's file name */ EXPORT_C const TDesC& CAgnAttachmentFile::FileName() const { if (iFileName) { return *iFileName; } return KNullDesC(); }
// ----------------------------------------------------------------------------- // GetText // // ----------------------------------------------------------------------------- // const TPtrC CAknInfoPopupNote::GetText() const { if ( iText->Text().Length() == 0 ) { return KNullDesC().Ptr(); } return iText->Text(); }