Exemplo n.º 1
0
 def getUserId(self):
     """
     @return: {integer} mcs user id
     @see: mcs.IGCCConfig
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "getUserId", "IGCCConfig"))
Exemplo n.º 2
0
 def getGCCServerSettings(self):
     """
     @return: {gcc.Settings} mcs layer gcc server settings
     @see: mcs.IGCCConfig
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "getGCCServerSettings", "IGCCConfig"))
Exemplo n.º 3
0
Arquivo: rfb.py Projeto: chushuai/rdpy
 def onCutText(self, text):
     """
     @summary: Receive cut text from server
     @param text: text inner cut text event
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "onCutText", "RFBClientListener"))
Exemplo n.º 4
0
 def GSS_UnWrapEx(self, data):
     """
     @summary: decrypt data with key exchange in Authentication protocol
     @param data: {str}
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "GSS_UnWrapEx", "IGenericSecurityService"))
Exemplo n.º 5
0
 def update(self, render, force=False):
     """
     Update view
     @param render: IRender
     @param force: force update
     """
     raise CallPureVirtualFuntion("%s:%s defined by interface %s" %
                                  (self.__class__, "update", "IView"))
Exemplo n.º 6
0
 def getChannelId(self):
     """
     @return: {integer} return channel id of proxy
     @see: mcs.IGCCConfig
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "getChannelId", "IGCCConfig"))
Exemplo n.º 7
0
 def translate(self, dx, dy):
     """
     Translate next render
     @param dx: delta x
     @param dy: delta y
     """
     raise CallPureVirtualFuntion("%s:%s defined by interface %s" %
                                  (self.__class__, "translate", "IRender"))
Exemplo n.º 8
0
 def buildRawLayer(self, addr):
     """
     @summary: Override this function to build raw layer
     @param addr: destination address
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "recv", "IStreamListener"))
Exemplo n.º 9
0
 def recv(self, s):
     """
     @summary: Signal that data is available
     @param s: Stream
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "recv", "IStreamListener"))
Exemplo n.º 10
0
Arquivo: rfb.py Projeto: chushuai/rdpy
 def onCutText(self, text):
     """
     @summary: event when server send cut text event
     @param text: text received
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "onCutText", "RFBClientObserver"))
Exemplo n.º 11
0
 def buildRawLayer(self, addr):
     """
     @summary: Override this function to build raw layer
     @param addr: destination address
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "buildRawLayer", "RawLayerClientFactory"))
Exemplo n.º 12
0
Arquivo: qt5.py Projeto: hkivela/rdpy
 def sendWheelEvent(self, e):
     """
     @summary: Interface to send wheel event to protocol stack
     @param e: QWheelEvent
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "sendWheelEvent", "QAdaptor"))
Exemplo n.º 13
0
 def getEncodedCredentials(self):
     """
     @summary: return encoded credentials accorded with authentication protocol nego
     @return: (domain, username, password)
     """
     raise CallPureVirtualFuntion("%s:%s defined by interface %s" %
                                  (self.__class__, "getEncodedCredentials",
                                   "IAuthenticationProtocol"))
Exemplo n.º 14
0
 def onReady(self):
     """
     @summary: Stack is ready and connected
     May be called after an setColorDepth too
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "onReady", "RDPServerObserver"))
Exemplo n.º 15
0
 def closeEvent(self, e):
     """
     @summary: Call when you want to close connection
     @param: QCloseEvent
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "closeEvent", "QAdaptor"))
Exemplo n.º 16
0
 def onSlowPathInput(self, slowPathInputEvents):
     """
     @summary: Event call when slow path input are available
     @param slowPathInputEvents: [data.SlowPathInputEvent]
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "onSlowPathInput", "PDUServerListener"))
Exemplo n.º 17
0
 def onUpdate(self, rectangles):
     """
     @summary: call when a bitmap data is received from update PDU
     @param rectangles: [pdu.BitmapData] struct
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "onUpdate", "PDUClientListener"))
Exemplo n.º 18
0
 def getNegotiateMessage(self):
     """
     @summary: Client first handshake message for authentication protocol
     @return: {object} first handshake message
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "getNegotiateMessage", "IAuthenticationProtocol"))
Exemplo n.º 19
0
Arquivo: tpkt.py Projeto: zha0/rdpy
 def sendFastPath(self, secFlag, fastPathS):
     """
     @summary: Send fastPathS Type as fast path packet
     @param secFlag: {integer} Security flag for fastpath packet
     @param fastPathS: {Type | Tuple} type transform to stream and send as fastpath
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "sendFastPath", "IFastPathSender"))
Exemplo n.º 20
0
Arquivo: tpkt.py Projeto: zha0/rdpy
 def recvFastPath(self, secFlag, fastPathS):
     """
     @summary: Call when fast path packet is received
     @param secFlag: {SecFlags}
     @param fastPathS: {Stream}
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "recvFastPath", "IFastPathListener"))
Exemplo n.º 21
0
Arquivo: rdp.py Projeto: nolteg/rdpy
 def onPointerEvent(self, x, y, button, isPressed):
     """
     @summary: Event call on mouse event
     @param x: x position
     @param y: y position
     @param button: 1, 2 or 3 button
     @param isPressed: True if mouse button is pressed
     """
     raise CallPureVirtualFuntion("%s:%s defined by interface %s"%(self.__class__, "onPointerEvent", "RDPServerObserver"))
Exemplo n.º 22
0
 def pointerEvent(self, x, y, button):
     """
     Pointer event notification
     @param x: x position
     @param y: y position
     @param button: button pressed
     """
     raise CallPureVirtualFuntion("%s:%s defined by interface %s" %
                                  (self.__class__, "pointerEvent", "IView"))
Exemplo n.º 23
0
 def buildObserver(self, controller, addr):
     """
     @summary: Build observer use for connection
     @param controller: RDP stack controller
     @param addr: destination address
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "buildObserver", "ServerFactory"))
Exemplo n.º 24
0
Arquivo: rfb.py Projeto: chushuai/rdpy
 def buildObserver(self, controller, addr):
     """
     @summary: Build an RFB observer object
     @param controller: controller use for rfb session
     @param addr: destination
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "buildObserver", "ClientFactory"))
Exemplo n.º 25
0
Arquivo: qt5.py Projeto: vyrus001/rdpy
 def sendKeyEvent(self, e, isPressed):
     """
     @summary: Interface to send key event to protocol stack
     @param e: QEvent
     @param isPressed: event come from press or release action
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "sendKeyEvent", "QAdaptor"))
Exemplo n.º 26
0
 def getAuthenticateMessage(self, s):
     """
     @summary: Client last handshake message
     @param s: {Stream} challenge message stream
     @return: {(object, IGenericSecurityService)} Last handshake message and interface for application
     """
     raise CallPureVirtualFuntion("%s:%s defined by interface %s" %
                                  (self.__class__, "getAuthenticateMessage",
                                   "IAuthenticationProtocol"))
Exemplo n.º 27
0
 def connectionLost(self, rawlayer, reason):
     """
     @summary: Override this method to handle connection lost
     @param rawlayer: rawLayer that cause connectionLost event
     @param reason: twisted reason
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "recv", "IStreamListener"))
Exemplo n.º 28
0
 def onKeyEventUnicode(self, code, isPressed):
     """
     @summary: Event call when a keyboard event is catch in unicode format
     @param code: unicode of key
     @param isPressed: True if key is down
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "onKeyEventUnicode", "RDPServerObserver"))
Exemplo n.º 29
0
 def recvRectangle(self, rectangle, pixelFormat, data):
     """
     @summary:  Receive rectangle order
                 Main update order type
     @param rectangle: Rectangle type header of packet
     @param pixelFormat: pixelFormat struct of current session
     @param data: image data
     """
     raise CallPureVirtualFuntion("%s:%s defined by interface %s"%(self.__class__, "recvRectangle", "RFBClientListener"))
Exemplo n.º 30
0
 def onKeyEventScancode(self, code, isPressed, isExtended):
     """
     @summary: Event call when a keyboard event is catch in scan code format
     @param code: {integer} scan code of key
     @param isPressed: {boolean} True if key is down
     @param isExtended: {boolean} True if a special key
     """
     raise CallPureVirtualFuntion(
         "%s:%s defined by interface %s" %
         (self.__class__, "onKeyEventScanCode", "RDPServerObserver"))