add exception virtual method
This commit is contained in:
@@ -112,6 +112,9 @@ def decode(src, width, height, colorType):
|
||||
prevline = line
|
||||
line = width * height * typeSize
|
||||
|
||||
if opcode == 0:
|
||||
if insertMix:
|
||||
pass
|
||||
|
||||
return dst
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
'''
|
||||
from twisted.internet import protocol
|
||||
from rdpy.network.layer import LayerMode
|
||||
from rdpy.network.error import CallPureVirtualFuntion
|
||||
import tpkt, tpdu, mcs, pdu
|
||||
|
||||
class RDPController(object):
|
||||
@@ -60,7 +61,7 @@ class ClientFactory(protocol.Factory):
|
||||
'''
|
||||
build observer use for connection
|
||||
'''
|
||||
pass
|
||||
raise CallPureVirtualFuntion("%s:%s defined by interface %s"%(self.__class__, "buildObserver", "ClientFactory"))
|
||||
|
||||
class ServerFactory(protocol.Factory):
|
||||
'''
|
||||
@@ -88,7 +89,7 @@ class ServerFactory(protocol.Factory):
|
||||
'''
|
||||
build observer use for connection
|
||||
'''
|
||||
pass
|
||||
raise CallPureVirtualFuntion("%s:%s defined by interface %s"%(self.__class__, "buildObserver", "ServerFactory"))
|
||||
|
||||
class RDPClientObserver(object):
|
||||
'''
|
||||
@@ -114,4 +115,4 @@ class RDPClientObserver(object):
|
||||
@param isCompress: use RLE compression
|
||||
@param data: bitmap data
|
||||
'''
|
||||
pass
|
||||
raise CallPureVirtualFuntion("%s:%s defined by interface %s"%(self.__class__, "onBitmapUpdate", "RDPClientObserver"))
|
||||
@@ -30,7 +30,7 @@ from twisted.internet import protocol
|
||||
from rdpy.network.layer import RawLayer, LayerMode
|
||||
from rdpy.network.type import UInt8, UInt16Be, UInt32Be, SInt32Be, String, CompositeType
|
||||
from rdpy.network.const import ConstAttributes, TypeAttributes
|
||||
from rdpy.network.error import InvalidValue
|
||||
from rdpy.network.error import InvalidValue, CallPureVirtualFuntion
|
||||
|
||||
@ConstAttributes
|
||||
@TypeAttributes(String)
|
||||
@@ -537,7 +537,7 @@ class ClientFactory(protocol.Factory):
|
||||
"""
|
||||
Build an RFB observer object
|
||||
"""
|
||||
pass
|
||||
raise CallPureVirtualFuntion("%s:%s defined by interface %s"%(self.__class__, "buildObserver", "ClientFactory"))
|
||||
|
||||
|
||||
class RFBClientObserver(object):
|
||||
@@ -588,4 +588,4 @@ class RFBClientObserver(object):
|
||||
@param encoding : encoding struct from rfb.types
|
||||
@param data : in respect of dataFormat and pixelFormat
|
||||
"""
|
||||
pass
|
||||
raise CallPureVirtualFuntion("%s:%s defined by interface %s"%(self.__class__, "onUpdate", "RFBClientObserver"))
|
||||
|
||||
Reference in New Issue
Block a user