tryToxic
 All Classes Functions
toxModels.toxMessageHandler Class Reference
Inheritance diagram for toxModels.toxMessageHandler:

Public Member Functions

def __init__
 
def saveAllMessages
 
def addMessage
 
def deleteUserMessages
 
def updateMessages
 

Public Attributes

 cachedToxMessages
 
 tmpFriendId
 
 eo
 
 tmpDecryptData
 

Detailed Description

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.

Constructor & Destructor Documentation

def toxModels.toxMessageHandler.__init__ (   self,
  eo 
)
eo -- encryptionObject - give it also when it's None!!

Definition at line 96 of file toxModels.py.

Member Function Documentation

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.


The documentation for this class was generated from the following file: