Source Code (Use browser search to find items of interest.)

Class Index

kdelibs'InterfaceRepo_stub (./kdelibs/arts/mcop/core.h:313)

class InterfaceRepo_stub : virtual public InterfaceRepo_base, virtual public Object_stub {
protected:
	InterfaceRepo_stub();

public:
	InterfaceRepo_stub(Connection *connection, long objectID);

	long insertModule(const ModuleDef& newModule);
	void removeModule(long moduleID);
	InterfaceDef* queryInterface(const std::string& name);
	TypeDef* queryType(const std::string& name);
};


kdelibs'InterfaceRepo_stub::InterfaceRepo_stub() (./kdelibs/arts/mcop/core.cc:798)

InterfaceRepo_stub::InterfaceRepo_stub()
{
	// constructor for subclasses (don't use directly)
}


kdelibs'InterfaceRepo_stub::InterfaceRepo_stub() (./kdelibs/arts/mcop/core.cc:803)

InterfaceRepo_stub::InterfaceRepo_stub(Connection *connection, long objectID)
	: Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}


kdelibs'InterfaceRepo_stub::insertModule() (./kdelibs/arts/mcop/core.cc:809)

long InterfaceRepo_stub::insertModule(const ModuleDef& newModule)
{
	long methodID = _lookupMethodFast("method:0d000000696e736572744d6f64756c6500050000006c6f6e670002000000010000000a0000004d6f64756c65446566000a0000006e65774d6f64756c6500");
	long requestID;
	Buffer *request, *result;
	request = Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	newModule.writeType(*request);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occured
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}


kdelibs'InterfaceRepo_stub::removeModule() (./kdelibs/arts/mcop/core.cc:826)

void InterfaceRepo_stub::removeModule(long moduleID)
{
	long methodID = _lookupMethodFast("method:0d00000072656d6f76654d6f64756c650005000000766f6964000200000001000000050000006c6f6e6700090000006d6f64756c65494400");
	long requestID;
	Buffer *request, *result;
	request = Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(moduleID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}


kdelibs'InterfaceRepo_stub::queryInterface() (./kdelibs/arts/mcop/core.cc:840)

InterfaceDef* InterfaceRepo_stub::queryInterface(const std::string& name)
{
	long methodID = _lookupMethodFast("method:0f0000007175657279496e74657266616365000d000000496e7465726661636544656600020000000100000007000000737472696e6700050000006e616d6500");
	long requestID;
	Buffer *request, *result;
	request = Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(name);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return new InterfaceDef(); // error occured
	InterfaceDef *_returnCode = new InterfaceDef(*result);
	delete result;
	return _returnCode;
}


kdelibs'InterfaceRepo_stub::queryType() (./kdelibs/arts/mcop/core.cc:857)

TypeDef* InterfaceRepo_stub::queryType(const std::string& name)
{
	long methodID = _lookupMethodFast("method:0a00000071756572795479706500080000005479706544656600020000000100000007000000737472696e6700050000006e616d6500");
	long requestID;
	Buffer *request, *result;
	request = Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(name);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return new TypeDef(); // error occured
	TypeDef *_returnCode = new TypeDef(*result);
	delete result;
	return _returnCode;
}

std::string InterfaceRepo_skel::_interfaceName()
{
	return "InterfaceRepo";
}

std::string InterfaceRepo_skel::_interfaceNameSkel()
{
	return "InterfaceRepo";
}

// insertModule