CDpsTransaction Class Reference
class CDpsTransaction : public CBase |
This class creates and parses dps operation (request and reply)
Constructor & Destructor Documentation
CDpsTransaction(CDpsStateMachine *)
CDpsTransaction | ( | CDpsStateMachine * | iOperator | ) | [private] |
Parameters
CDpsStateMachine * iOperator | the pointer to the dps operator |
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
Second phase constructor.
ConvertVersion(TLex8 &, TDpsVersion &)
Converts the version in descriptor tpye to TDpsVersion type
CreateEventReplyL(TDpsEvent, const TDpsResult &)
Creates the dps event reply.
Parameters
TDpsEvent aEvent | |
const TDpsResult & aResult | the result of the reply. See Dps spec for detail result value |
CreateRequestL(TMDpsOperation *)
Creates the dps operation request
CreateRequestReplyL(const TDpsArgArray &, const TDpsResult &)
Creates the dps request reply based on host dps request. There is only one dps request from host (others are from device) - GetFileID
Filter(TDes8 &)
void | Filter | ( | TDes8 & | aScript | ) | [private] |
Removes the unprintable chars (LF, CR, TAB and spaces) between two XML attributes. It seems sybmian XML framework does filter out these character even though they are not belong to the attribute. Some printers (Cannon) send Dps request (XML script) in human readable format, e.g. including LF, CR and spaces among XML attributes.
Parameters
TDes8 & aScript | the XML script to be filtered out |
Generator()
CDpsXmlGenerator * | Generator | ( | ) | [inline] |
HandleHostRequestError(TInt)
void | HandleHostRequestError | ( | TInt | aErr | ) | |
NewL(CDpsStateMachine *)
Parameters
CDpsStateMachine * iOperator | the pointer to dps operation object |
Operator()
CDpsStateMachine * | Operator | ( | ) | [inline] |
ParsePercentage(const TDes8 &)
Parses the string of percentage to integer
Parameters
const TDes8 & aPer | the string of percentage to be parsed |
ParseScriptL(TBool)
void | ParseScriptL | ( | TBool | aReply | ) | |
Parses dps operation script
Parameters
TBool aReply | if the script is the reply from the host aReply is ETrue, otherwise the script must be the request from the device and aReply is EFalse |
Parser()
CDpsXmlParser * | Parser | ( | ) | [inline] |
SubstitutePath(TDes8 &)
void | SubstitutePath | ( | TDes8 & | aPath | ) | [private] |
Changes the file path for GetFileID request
Member Data Documentation
CDpsStateMachine * iOperator
CDpsStateMachine * | iOperator | [private] |
CDpsXmlGenerator * iXmlGen
CDpsXmlGenerator * | iXmlGen | [private] |
CDpsXmlParser * iXmlPar
CDpsXmlParser * | iXmlPar | [private] |
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.