TOXYGEN
 All Classes Functions
Public Member Functions | Properties | List of all members
toxygen.friend.Friend Class Reference
Inheritance diagram for toxygen.friend.Friend:
toxygen.contact.Contact

Public Member Functions

def __init__
 
def __del__
 
def get_receipts
 
def inc_receipts
 
def dec_receipt
 
def load_corr
 
def load_all_corr
 
def get_corr_for_saving
 
def get_corr
 
def append_message
 
def get_last_message_text
 
def get_unsent_messages
 
def get_unsent_messages_for_saving
 
def delete_message
 
def mark_as_sent
 
def clear_corr
 
def get_curr_text
 
def set_curr_text
 
def update_transfer_data
 
def get_unsent_files
 
def clear_unsent_files
 
def delete_one_unsent_file
 
def set_name
 
def set_alias
 
def get_visibility
 
def set_visibility
 
def get_actions
 
def set_actions
 
def get_messages
 
def inc_messages
 
def reset_messages
 
def get_number
 
def set_number
 
- Public Member Functions inherited from toxygen.contact.Contact
def __init__
 
def get_name
 
def set_name
 
def get_status_message
 
def set_status_message
 
def get_status
 
def set_status
 
def get_tox_id
 
def load_avatar
 
def reset_avatar
 
def set_avatar
 
def get_pixmap
 

Properties

 receipts = property(get_receipts)
 
 curr_text = property(get_curr_text, set_curr_text)
 
 visibility = property(get_visibility, set_visibility)
 
 actions = property(get_actions, set_actions)
 
 messages = property(get_messages)
 
 number = property(get_number, set_number)
 
- Properties inherited from toxygen.contact.Contact
 name = property(get_name, set_name)
 
 status_message = property(get_status_message, set_status_message)
 
 status = property(get_status, set_status)
 
 tox_id = property(get_tox_id)
 

Detailed Description

Friend in list of friends. Can be hidden, properties 'has unread messages' and 'has alias' added

Constructor & Destructor Documentation

def toxygen.friend.Friend.__init__ (   self,
  message_getter,
  number,
  args 
)
:param message_getter: gets messages from db
:param number: number of friend.

Member Function Documentation

def toxygen.friend.Friend.append_message (   self,
  message 
)
:param message: text or file transfer message
def toxygen.friend.Friend.clear_corr (   self,
  save_unsent = False 
)
Clear messages list
def toxygen.friend.Friend.get_corr_for_saving (   self)
Get data to save in db
:return: list of unsaved messages or []
def toxygen.friend.Friend.get_unsent_messages (   self)
:return list of unsent messages
def toxygen.friend.Friend.get_unsent_messages_for_saving (   self)
:return list of unsent messages for saving
def toxygen.friend.Friend.load_corr (   self,
  first_time = True 
)
:param first_time: friend became active, load first part of messages
def toxygen.friend.Friend.set_name (   self,
  value 
)
Set new name or ignore if alias exists
:param value: new name
def toxygen.friend.Friend.update_transfer_data (   self,
  file_number,
  status,
  inline = None 
)
Update status of active transfer and load inline if needed

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