summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormday <mday>2003-08-14 21:38:47 +0000
committermday <mday>2003-08-14 21:38:47 +0000
commit59b5af91d180f97369616793cf65f76d76ade99a (patch)
tree50c721dea1eba1d7453053223775e0b7ccc71fa3
parentd771b8b74b3b67e2338c3cf985a4263af584e6f1 (diff)
downloadtog-pegasus-pep_88.zip
tog-pegasus-pep_88.tar.gz
tog-pegasus-pep_88.tar.xz
finished socket classes, ready to mergepep_88
-rw-r--r--src/Clients/cliutils/CommandException.cpp12
-rw-r--r--src/Pegasus/Client/CIMClient.cpp30
-rw-r--r--src/Pegasus/Client/CIMClient.h36
-rw-r--r--src/Pegasus/Common/pegasus_socket.cpp6
4 files changed, 6 insertions, 78 deletions
diff --git a/src/Clients/cliutils/CommandException.cpp b/src/Clients/cliutils/CommandException.cpp
index 6369b5b..d61b81f 100644
--- a/src/Clients/cliutils/CommandException.cpp
+++ b/src/Clients/cliutils/CommandException.cpp
@@ -147,18 +147,6 @@ InvalidOptionArgumentException::InvalidOptionArgumentException
(String ())
{
- //l10n
- //_rep->message = _MESSAGE_INVALID_ARG1;
- //_rep->message.append (invalidArgument);
- //_rep->message.append (_MESSAGE_INVALID_ARG2);
- //_rep->message.append (option);
- //_rep->message.append (_MESSAGE_INVALID_ARG3);
- MessageLoaderParms parms("Clients.cliutils.CommandException.INVALID_ARG",
- "argument \"$0\" is not valid for option \"-$1\"",
- invalidArgument,
- String().append(option));
- _rep->message.append(MessageLoader::getMessage(parms));
-
//l10n
//_rep->message = _MESSAGE_INVALID_ARG1;
diff --git a/src/Pegasus/Client/CIMClient.cpp b/src/Pegasus/Client/CIMClient.cpp
index b711866..089f94d 100644
--- a/src/Pegasus/Client/CIMClient.cpp
+++ b/src/Pegasus/Client/CIMClient.cpp
@@ -143,37 +143,7 @@ void CIMClient::disconnect()
_rep->disconnect();
}
-// l10n start
-void CIMClient::setRequestAcceptLanguages(AcceptLanguages& langs)
-{
- _rep->setRequestAcceptLanguages(langs);
-}
-
-AcceptLanguages CIMClient::getRequestAcceptLanguages() const
-{
- return _rep->getRequestAcceptLanguages();
-}
-
-void CIMClient::setRequestContentLanguages(ContentLanguages& langs)
-{
- _rep->setRequestContentLanguages(langs);
-}
-
-ContentLanguages CIMClient::getRequestContentLanguages() const
-{
- return _rep->getRequestContentLanguages();
-}
-ContentLanguages CIMClient::getResponseContentLanguages() const
-{
- return _rep->getResponseContentLanguages();
-}
-
-void CIMClient::setRequestDefaultLanguages()
-{
- _rep->setRequestDefaultLanguages();
-}
-// l10n end
// l10n start
void CIMClient::setRequestAcceptLanguages(AcceptLanguages& langs)
diff --git a/src/Pegasus/Client/CIMClient.h b/src/Pegasus/Client/CIMClient.h
index aca5395..21f96fb 100644
--- a/src/Pegasus/Client/CIMClient.h
+++ b/src/Pegasus/Client/CIMClient.h
@@ -222,42 +222,6 @@ public:
*/
void disconnect();
-// l10n start
- /** Sets the accept languages that will be used on the next request.
- * Accept languages are the preferred languages that are to be
- * returned on the response to the next request.
- */
- void setRequestAcceptLanguages(AcceptLanguages& langs);
-
- /** Gets the accept languages that will be used on the next request.
- * Accept languages are the preferred languages that are to be
- * returned on the response to the next request.
- */
- AcceptLanguages getRequestAcceptLanguages() const;
-
- /** Sets the content languages that will be used on the next request.
- * These content languages are the languages of the CIM objects that will
- * sent on the next request.
- */
- void setRequestContentLanguages(ContentLanguages& langs);
-
- /** Gets the content languages that will be used on the next request.
- * These content languages are the languages of the CIM objects that will
- * sent on the next request.
- */
- ContentLanguages getRequestContentLanguages() const;
-
- /** Gets the content languages of the last response.
- * These content languages are the languages of the CIM objects, or
- * CIM exceptions, that were returned on the last response..
- */
- ContentLanguages getResponseContentLanguages() const;
-
- /**
- *
- */
- void setRequestDefaultLanguages();
-// l10n end
// l10n start
diff --git a/src/Pegasus/Common/pegasus_socket.cpp b/src/Pegasus/Common/pegasus_socket.cpp
index 828a1a7..407464a 100644
--- a/src/Pegasus/Common/pegasus_socket.cpp
+++ b/src/Pegasus/Common/pegasus_socket.cpp
@@ -216,9 +216,15 @@ class bsd_socket_rep : public abstract_socket
{
_library_init(void)
{
+#ifdef PEGASUS_OS_TYPE_WINDOWS
+ Socket::initializeInterface();
+#endif
}
~_library_init(void)
{
+#ifdef PEGASUS_OS_TYPE_WINDOWS
+ Socket::uninitializeInterface();
+#endif
}
};