tryToxic
|
Public Member Functions | |
def | __init__ |
def | saveAllMessages |
def | addMessage |
def | deleteUserMessages |
def | updateMessages |
Public Attributes | |
cachedToxMessages | |
tmpFriendId | |
eo | |
tmpDecryptData | |
a handler for saving, manage and giving back the messages. @TODO make this class enable/disable-able (?) in settings.
Definition at line 91 of file toxModels.py.
def toxModels.toxMessageHandler.__init__ | ( | self, | |
eo | |||
) |
eo -- encryptionObject - give it also when it's None!!
Definition at line 96 of file toxModels.py.
def toxModels.toxMessageHandler.addMessage | ( | self, | |
toxMessage | |||
) |
add toxMessage to the database
Definition at line 121 of file toxModels.py.
def toxModels.toxMessageHandler.deleteUserMessages | ( | self, | |
friendId | |||
) |
Delete a user's history/messages from database
Definition at line 131 of file toxModels.py.
def toxModels.toxMessageHandler.saveAllMessages | ( | self, | |
eo | |||
) |
reSave all messages. Mainly used by scm's method migrateEncryptedData eo -- is the NEW encryptionObject
Definition at line 105 of file toxModels.py.
def toxModels.toxMessageHandler.updateMessages | ( | self, | |
friendId = -1 |
|||
) |
updateMessages get messages from database to RAM. friendId -- if setted -1 / you dont set it, it will load the messages of ALL users. It's recommended to use a friendId!
Definition at line 139 of file toxModels.py.