35 lines
673 B
Python
35 lines
673 B
Python
|
|
#!/opt/homebrew/bin/python3
|
||
|
|
# -*- coding:utf-8 -*-
|
||
|
|
|
||
|
|
import sys
|
||
|
|
import time
|
||
|
|
|
||
|
|
from PyQt6 import *
|
||
|
|
from PyQt6.QtCore import *
|
||
|
|
|
||
|
|
from interfaceSession.sessionAbstract import SessionAbstract
|
||
|
|
|
||
|
|
from logs import log
|
||
|
|
|
||
|
|
class SessionGeneral(SessionAbstract):
|
||
|
|
newDataArrive = pyqtSignal(bytearray)
|
||
|
|
def __init__(self,id, name, attrs = {}):
|
||
|
|
super().__init__(id, name, "general", attrs)
|
||
|
|
|
||
|
|
def setAttrs(self, attrs):
|
||
|
|
self._PROTECTED__attrs.update(attrs)
|
||
|
|
|
||
|
|
def getLockState(self):
|
||
|
|
return False
|
||
|
|
|
||
|
|
def lock(self):
|
||
|
|
return True
|
||
|
|
|
||
|
|
def unlock(self):
|
||
|
|
return False
|
||
|
|
|
||
|
|
@pyqtSlot(bytes)
|
||
|
|
def send(self, data):
|
||
|
|
pass
|
||
|
|
|