本文整理汇总了C++中TIpcArgs类的典型用法代码示例。如果您正苦于以下问题:C++ TIpcArgs类的具体用法?C++ TIpcArgs怎么用?C++ TIpcArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TIpcArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MarshallArgumentsL
void CDisplayDeviceIncompatibility::MarshallArgumentsL(TIpcArgs& aArguments)
{
*iStream << iAppInfo;
iIpcInputPtr.Set(iStream->Ptr());
aArguments.Set(0, &iIpcInputPtr);
aArguments.Set(1, &iResultPackage);
}
示例2: typeMsg
// ---------------------------------------------------------------------------
// RPeninputServerImpl::UpdateAppInfo
// Update current application information
// ---------------------------------------------------------------------------
//
void RPeninputServerImpl::UpdateAppInfo(const TDesC& aInfo, TPeninputAppInfo aType)
{
TPckgC<TPeninputAppInfo> typeMsg(aType);
TIpcArgs arg;
arg.Set(KMsgSlot0,&typeMsg);
arg.Set(KMsgSlot1,&aInfo);
SendReceive(EPeninputRequestUpdateAppInfo,arg);
}
示例3: __ASSERT_ALWAYS
// -----------------------------------------------------------------------------
// RSWInstLauncher::Install
// Launches the software install procedure.
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C TInt RSWInstLauncher::Install( const TDesC& aFileName )
{
__ASSERT_ALWAYS( iConnected, PanicClient( ESWInstPanicBadHandle ) );
TIpcArgs args;
args.Set( KFileNameIpcSlot, &aFileName );
return SendReceive( ERequestInstall, args );
}
示例4: ptr
// -----------------------------------------------------------------------------
// RVoIPAudioSession::OpenRingTonePlayer
// -----------------------------------------------------------------------------
//
EXPORT_C TInt RVoIPAudioSession::OpenRingTonePlayer(const TDesC8& aDesData)
{
TPtrC8 ptr(aDesData);
TIpcArgs args;
args.Set(0, &ptr);
TInt err = SendClientRequest(EVoIPOpenRingTonePlayerFromDes, args);
return err;
}
示例5: labelPtr
QString CSmfCredMgrClientSymbian::storeRSAKeysL(const QString KeyLabel,
const QString keydata, const QDateTime Validity)
{
RDebug::Printf("Sending store RSA key message to server");
TPtrC labelPtr(qt_QString2TPtrC(KeyLabel));
TPtr dataPtr((qt_QString2HBufC(keydata)->Des()));
QDateTime CurrentTime = QDateTime::currentDateTime();
TTimeIntervalSeconds duration(CurrentTime.secsTo(Validity));
TTime startDate;
startDate.UniversalTime();
TTime endDate(startDate);
endDate += duration;
CSmfRsaKeyParameters* storeRSAKeysparams = CSmfRsaKeyParameters::NewL(
labelPtr, startDate, endDate, (dataPtr.Collapse()));
CleanupStack::PushL(storeRSAKeysparams);
CBufFlat* buf = CBufFlat::NewL(KMinBufSize);
CleanupStack::PushL(buf);
RBufWriteStream stream(*buf);
CleanupClosePushL(stream);
storeRSAKeysparams->ExternalizeL(stream);
stream.CommitL();
TPtr8 bufPtr = buf->Ptr(0);
TIpcArgs args;
args.Set(0, &bufPtr);
CleanupStack::PopAndDestroy(&stream);
HBufC8* retBuf = HBufC8::NewLC(KSHA1HashLengthBytes);
TPtr8 retBufPtr(retBuf->Des());
args.Set(1, &retBufPtr);
iSession.RequestService(ESmfStoreRSAKey, args);
RDebug::Printf("SMF: Message completed");
TBuf<KSHA1HashLengthBytes> key;
key.Copy(retBufPtr);
QString RetString(qt_TDesC2QString(key));
CleanupStack::Pop(retBuf);
CleanupStack::PopAndDestroy(buf);
CleanupStack::PopAndDestroy(storeRSAKeysparams);
RDebug::Printf("-In storeAuthDataL()");
return (RetString);
}
示例6: MarshallArgumentsL
void CDisplayApplicationsInUse::MarshallArgumentsL(TIpcArgs& aArguments)
{
*iStream << iAppInfo;
StreamOutArrayL(iAppNames,*iStream);
iIpcInputPtr.Set(iStream->Ptr());
aArguments.Set(0, &iIpcInputPtr);
aArguments.Set(1, &iResultPackage);
}
示例7: bufPtr
void CSmfCredMgrClientSymbian::deleteRSAKey(QString KeyLabel)
{
TPtr bufPtr((qt_QString2HBufC(KeyLabel))->Des());
TIpcArgs args;
args.Set(0, &bufPtr);
iSession.RequestService(ESmfDeleteKeys, args);
}
示例8: MarshallArgumentsL
void CDisplayLanguage::MarshallArgumentsL(TIpcArgs& aArguments)
{
*iStream << iAppInfo;
StreamOutArrayL(iLanguages, *iStream);;
iIpcInputPtr.Set(iStream->Ptr());
aArguments.Set(0, &iIpcInputPtr);
aArguments.Set(1, &iResultPackage);
}
示例9: MarshallArgumentsL
void CDisplayDependencyBreak::MarshallArgumentsL(TIpcArgs& aArguments)
{
*iStream << iAppInfo;
StreamOutArrayL(iComponents, *iStream);
iIpcInputPtr.Set(iStream->Ptr());
aArguments.Set(0, &iIpcInputPtr);
aArguments.Set(1, &iResultPackage);
}
示例10: PrepareArgumentsL
void RPackagerTestClient::PrepareArgumentsL(TIpcArgs& anArgs) const
/** Sets a TIpcArgs object with the packager's buffer details necessary
for inter-process data exchange.
@param anArgs The TIpcArgs object to be set. */
{
anArgs.Set(EIPCPackagerTransmitBuffer, &iPackager->GetTransmittingBuffer());
anArgs.Set(EIPCPackagerReceiveBuffer, &iPackager->GetReceivingBufferL());
}
示例11: msgPos
// ---------------------------------------------------------------------------
// RPeninputServerImpl::UiLayoutPos
// get ui layout position
// ---------------------------------------------------------------------------
//
void RPeninputServerImpl::GetUiLayoutPosAndSize()
{
TPckg<TPoint> msgPos(iPosition);
TPckg<TSize> msgSize(iSize);
TIpcArgs arg;
arg.Set(KMsgSlot0,&msgPos);
arg.Set(KMsgSlot1,&msgSize);
SendReceive(EPeninputRequestUiGetUiPos,arg);
}
示例12: MarshallArgumentsL
void CDisplayText::MarshallArgumentsL(TIpcArgs& aArguments)
{
*iStream << iAppInfo;
*iStream << TPckgC<TFileTextOption>(iOption);
*iStream << iText;
iIpcInputPtr.Set(iStream->Ptr());
aArguments.Set(0, &iIpcInputPtr);
aArguments.Set(1, &iResultPackage);
}
示例13: SwitchOutputToFileL
EXPORT_C void RMemSpySession::SwitchOutputToFileL(const TDesC& aRootFolder)
{
TIpcArgs args;
if (aRootFolder.Length())
{
args.Set(0, &aRootFolder);
}
User::LeaveIfError(SendReceive(EMemSpyClientServerOpSwitchOutputSinkFile, args));
}
示例14: GetServerEventData
// ---------------------------------------------------------------------------
// RPeninputServerImpl::GetServerEventData
// Retrieve server event data
// ---------------------------------------------------------------------------
//
TInt RPeninputServerImpl::GetServerEventData(TDes& aBuf)
{
if(iServerExit) // ???
return -1;
TIpcArgs arg;
aBuf.Zero();
arg.Set(KMsgSlot0,aBuf.MaxLength());
arg.Set(KMsgSlot1,&aBuf);
return SendReceive(EPeninputRequestGetServerEventData,arg);
}
示例15: DisabledLayout
// ---------------------------------------------------------------------------
// RPeninputServerImpl::SetDisplayMode
// To disable specified layouts at a time.
// ---------------------------------------------------------------------------
//
TInt RPeninputServerImpl::DisabledLayout()
{
TInt layouts = 0;
TIpcArgs arg;
TPckg<TInt> msg(layouts);
arg.Set(KMsgSlot0,&msg);
SendReceive( EPeninputRequestGetDisableLayout, arg );
return layouts;
}