add exception virtual method

This commit is contained in:
speyrefitte
2014-06-25 17:54:59 +02:00
parent fadf1ff5c4
commit 239f4c7dbb
3 changed files with 10 additions and 6 deletions

View File

@@ -112,6 +112,9 @@ def decode(src, width, height, colorType):
prevline = line
line = width * height * typeSize
if opcode == 0:
if insertMix:
pass
return dst

View File

@@ -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"))

View File

@@ -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"))