Kaydet (Commit) c70007b4 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS docking1 (1.1.104); FILE MERGED

2004/06/15 15:01:36 gh 1.1.104.1: #i29531#add support for string ids to acces UI elements. Needed for new ToolBoxes
üst d04255d7
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: cmdbasestream.cxx,v $ * $RCSfile: cmdbasestream.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: rt $ $Date: 2004-06-17 13:37:36 $ * last change: $Author: obo $ $Date: 2004-07-06 12:04:14 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -83,11 +83,11 @@ CmdBaseStream::~CmdBaseStream() ...@@ -83,11 +83,11 @@ CmdBaseStream::~CmdBaseStream()
{ {
} }
void CmdBaseStream::GenError (comm_ULONG nError, const comm_UniChar* aString, comm_USHORT nLenInChars ) void CmdBaseStream::GenError (SmartId *pUId, comm_String *pString )
{ {
Write(comm_USHORT(SIReturnError)); Write(comm_USHORT(SIReturnError));
Write(nError); Write(pUId);
Write(aString, nLenInChars); Write(pString);
} }
void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId ) void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId )
...@@ -98,90 +98,90 @@ void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId ) ...@@ -98,90 +98,90 @@ void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId )
Write(comm_USHORT(PARAM_NONE)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_NONE)); // Typ der folgenden Parameter
} }
void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId, comm_ULONG nNr ) void CmdBaseStream::GenReturn (comm_USHORT nRet, SmartId *pUId, comm_ULONG nNr )
{ {
Write(comm_USHORT(SIReturn)); Write(comm_USHORT(SIReturn));
Write(nRet); Write(nRet);
Write(nUId); Write(pUId);
Write(comm_USHORT(PARAM_ULONG_1)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_ULONG_1)); // Typ der folgenden Parameter
Write(nNr); Write(nNr);
} }
void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId, const comm_UniChar* aString, comm_USHORT nLenInChars ) void CmdBaseStream::GenReturn (comm_USHORT nRet, SmartId *pUId, comm_String *pString )
{ {
Write(comm_USHORT(SIReturn)); Write(comm_USHORT(SIReturn));
Write(nRet); Write(nRet);
Write(nUId); Write(pUId);
Write(comm_USHORT(PARAM_STR_1)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_STR_1)); // Typ der folgenden Parameter
Write(aString, nLenInChars); Write(pString);
} }
void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId, comm_BOOL bBool ) void CmdBaseStream::GenReturn (comm_USHORT nRet, SmartId *pUId, comm_BOOL bBool )
{ {
Write(comm_USHORT(SIReturn)); Write(comm_USHORT(SIReturn));
Write(nRet); Write(nRet);
Write(nUId); Write(pUId);
Write(comm_USHORT(PARAM_BOOL_1)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(bBool); Write(bBool);
} }
void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId, comm_ULONG nNr, const comm_UniChar* aString, comm_USHORT nLenInChars, comm_BOOL bBool ) void CmdBaseStream::GenReturn (comm_USHORT nRet, SmartId *pUId, comm_ULONG nNr, comm_String *pString, comm_BOOL bBool )
{ {
Write(comm_USHORT(SIReturn)); Write(comm_USHORT(SIReturn));
Write(nRet); Write(nRet);
Write(nUId); Write(pUId);
Write(comm_USHORT(PARAM_ULONG_1|PARAM_STR_1|PARAM_BOOL_1)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_ULONG_1|PARAM_STR_1|PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(nNr); Write(nNr);
Write(aString, nLenInChars); Write(pString);
Write(bBool); Write(bBool);
} }
// MacroRecorder // MacroRecorder
void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod ) void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod )
{ {
Write(comm_USHORT(SIReturn)); Write(comm_USHORT(SIReturn));
Write(nRet); Write(nRet);
Write(nUId); Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_USHORT_1)); // Typ der folgenden Parameter
Write(nMethod); Write(nMethod);
} }
void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod, const comm_UniChar* aString, comm_USHORT nLenInChars ) void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod, comm_String *pString )
{ {
Write(comm_USHORT(SIReturn)); Write(comm_USHORT(SIReturn));
Write(nRet); Write(nRet);
Write(nUId); Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1|PARAM_STR_1)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_USHORT_1|PARAM_STR_1)); // Typ der folgenden Parameter
Write(nMethod); Write(nMethod);
Write(aString, nLenInChars); Write(pString);
} }
void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod, const comm_UniChar* aString, comm_USHORT nLenInChars, comm_BOOL bBool ) void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod, comm_String *pString, comm_BOOL bBool )
{ {
Write(comm_USHORT(SIReturn)); Write(comm_USHORT(SIReturn));
Write(nRet); Write(nRet);
Write(nUId); Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1|PARAM_STR_1|PARAM_BOOL_1)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_USHORT_1|PARAM_STR_1|PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(nMethod); Write(nMethod);
Write(aString, nLenInChars); Write(pString);
Write(bBool); Write(bBool);
} }
void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod, comm_BOOL bBool ) void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod, comm_BOOL bBool )
{ {
Write(comm_USHORT(SIReturn)); Write(comm_USHORT(SIReturn));
Write(nRet); Write(nRet);
Write(nUId); Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1|PARAM_BOOL_1)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_USHORT_1|PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(nMethod); Write(nMethod);
Write(bBool); Write(bBool);
} }
void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod, comm_ULONG nNr ) void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod, comm_ULONG nNr )
{ {
Write(comm_USHORT(SIReturn)); Write(comm_USHORT(SIReturn));
Write(nRet); Write(nRet);
Write(nUId); Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1|PARAM_ULONG_1)); // Typ der folgenden Parameter Write(comm_USHORT(PARAM_USHORT_1|PARAM_ULONG_1)); // Typ der folgenden Parameter
Write(nMethod); Write(nMethod);
Write(nNr); Write(nNr);
...@@ -189,55 +189,6 @@ void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nM ...@@ -189,55 +189,6 @@ void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nM
// StringID
void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
Write(aUId, nUIdLenInChars);
Write(comm_USHORT(PARAM_NONE)); // Typ der folgenden Parameter
}
void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars, comm_ULONG nNr )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
Write(aUId, nUIdLenInChars);
Write(comm_USHORT(PARAM_ULONG_1)); // Typ der folgenden Parameter
Write(nNr);
}
void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars, const comm_UniChar* aString, comm_USHORT nLenInChars )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
Write(aUId, nUIdLenInChars);
Write(comm_USHORT(PARAM_STR_1)); // Typ der folgenden Parameter
Write(aString, nLenInChars);
}
void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars, comm_BOOL bBool )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
Write(aUId, nUIdLenInChars);
Write(comm_USHORT(PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(bBool);
}
void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars, comm_ULONG nNr, const comm_UniChar* aString, comm_USHORT nLenInChars, comm_BOOL bBool )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
Write(aUId, nUIdLenInChars);
Write(comm_USHORT(PARAM_ULONG_1|PARAM_STR_1|PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(nNr);
Write(aString, nLenInChars);
Write(bBool);
}
void CmdBaseStream::Read (comm_USHORT &nNr) void CmdBaseStream::Read (comm_USHORT &nNr)
{ {
comm_USHORT nId; comm_USHORT nId;
...@@ -327,3 +278,13 @@ void CmdBaseStream::Write( comm_BOOL bBool ) ...@@ -327,3 +278,13 @@ void CmdBaseStream::Write( comm_BOOL bBool )
*pCommStream << bBool; *pCommStream << bBool;
} }
void CmdBaseStream::Read ( comm_String* &pString )
{ DBG_ERROR("Read ( comm_String* &pString ) Not Implemented") }
void CmdBaseStream::Read ( SmartId* &pId )
{ DBG_ERROR("Read ( SmartId* &pId ) Not Implemented") }
void CmdBaseStream::Write( comm_String *pString )
{ DBG_ERROR("Write( comm_String *pString ) Not Implemented") }
void CmdBaseStream::Write( SmartId* pId )
{ DBG_ERROR("Write( SmartId* pId ) Not Implemented") }
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
# #
# $RCSfile: makefile.mk,v $ # $RCSfile: makefile.mk,v $
# #
# $Revision: 1.1 $ # $Revision: 1.2 $
# #
# last change: $Author: mh $ $Date: 2002-11-18 15:27:48 $ # last change: $Author: obo $ $Date: 2004-07-06 12:04:28 $
# #
# The Contents of this file are made available subject to the terms of # The Contents of this file are made available subject to the terms of
# either of the following licenses # either of the following licenses
...@@ -81,12 +81,14 @@ SLOFILES = \ ...@@ -81,12 +81,14 @@ SLOFILES = \
$(SLO)$/editwin.obj \ $(SLO)$/editwin.obj \
$(SLO)$/server.obj \ $(SLO)$/server.obj \
$(SLO)$/retstrm.obj \ $(SLO)$/retstrm.obj \
$(SLO)$/profiler.obj $(SLO)$/profiler.obj \
$(SLO)$/smartid.obj
OBJFILES = \ OBJFILES = \
$(OBJ)$/cmdbasestream.obj \ $(OBJ)$/cmdbasestream.obj \
$(OBJ)$/svcommstream.obj $(OBJ)$/svcommstream.obj \
$(OBJ)$/smartid.obj
EXCEPTIONSFILES = \ EXCEPTIONSFILES = \
$(SLO)$/server.obj \ $(SLO)$/server.obj \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment