Package common :: Module gajim
[hide private]
[frames] | no frames]

Module gajim

source code

Functions [hide private]
 
get_nick_from_jid(jid) source code
 
get_server_from_jid(jid) source code
 
get_name_and_server_from_jid(jid) source code
 
get_room_and_nick_from_fjid(jid) source code
 
get_real_jid_from_fjid(account, fjid)
Return real jid or returns None, if we don't know the real jid
source code
 
get_room_from_fjid(jid) source code
 
get_contact_name_from_jid(account, jid) source code
 
get_jid_without_resource(jid) source code
 
construct_fjid(room_jid, nick)
Nick is in UTF-8 (taken from treeview); room_jid is in unicode
source code
 
get_resource_from_jid(jid) source code
 
get_number_of_accounts()
Return the number of ALL accounts
source code
 
get_number_of_connected_accounts(accounts_list=None)
Returns the number of CONNECTED accounts.
source code
 
account_is_connected(account) source code
 
account_is_disconnected(account) source code
 
zeroconf_is_connected() source code
 
get_number_of_securely_connected_accounts()
Return the number of the accounts that are SSL/TLS connected
source code
 
account_is_securely_connected(account) source code
 
get_transport_name_from_jid(jid, use_config_setting=True)
Returns 'aim', 'gg', 'irc' etc
source code
 
jid_is_transport(jid) source code
 
get_jid_from_account(account_name)
Return the jid we use in the given account
source code
 
get_our_jids()
Returns a list of the jids we use in our accounts
source code
 
get_hostname_from_account(account_name, use_srv=False)
Returns hostname (if custom hostname is used, that is returned)
source code
 
get_notification_image_prefix(jid)
Returns the prefix for the notification images
source code
 
get_name_from_jid(account, jid)
Return from JID's shown name and if no contact returns jids
source code
 
get_priority(account, show)
Return the priority an account must have
source code
Variables [hide private]
  interface = None
  thread_interface = None
  config = config.Config()
  version = config.get('version')
  connections = {}
  ipython_window = None
  ged = None
  nec = None
  plugin_manager = None
  log = logging.getLogger('gajim')
  logger = logger.Logger()
  gajimpaths = ConfigPaths()
  VCARD_PATH = gajimpaths ['VCARD']
  AVATAR_PATH = gajimpaths ['AVATAR']
  MY_EMOTS_PATH = gajimpaths ['MY_EMOTS']
  MY_ICONSETS_PATH = gajimpaths ['MY_ICONSETS']
  MY_MOOD_ICONSETS_PATH = gajimpaths ['MY_MOOD_ICONSETS']
  MY_ACTIVITY_ICONSETS_PATH = gajimpaths ['MY_ACTIVITY_ICONSETS']
  MY_CACERTS = gajimpaths ['MY_CACERTS']
  TMP = gajimpaths ['TMP']
  DATA_DIR = gajimpaths ['DATA']
  ICONS_DIR = gajimpaths ['ICONS']
  HOME_DIR = gajimpaths ['HOME']
  PLUGINS_DIRS = [gajimpaths ['PLUGINS_BASE'], gajimpaths ['PLUG...
  PLUGINS_CONFIG_DIR = gajimpaths ['PLUGINS_CONFIG_DIR']
  LANG = LANG [: 2]
  os_info = None
  gmail_domains = ['gmail.com', 'googlemail.com']
  transport_type = {}
  last_message_time = {}
  encrypted_chats = {}
  contacts = LegacyContactsAPI()
  gc_connected = {}
  gc_passwords = {}
  automatic_rooms = {}
  new_room_nick = None
  groups = {}
  newly_added = {}
  to_be_removed = {}
  events = Events()
  nicks = {}
  block_signed_in_notifications = {}
  con_types = {}
  sleeper_state = {}
  status_before_autoaway = {}
  transport_avatar = {}
  single_click = False
  SHOW_LIST = ['offline', 'connecting', 'online', 'chat', 'away'...
  ZEROCONF_ACC_NAME = 'Local'
  HAVE_ZEROCONF = False
  HAVE_PYCRYPTO = False
  HAVE_GPG = False
  HAVE_LATEX = False
  HAVE_FARSIGHT = False
  gajim_identity = {'type': 'pc', 'category': 'client', 'name': ...
  gajim_common_features = [xmpp.NS_BYTESTREAM, xmpp.NS_SI, xmpp....
  gajim_optional_features = {}
  caps_hash = {}

Imports: sys, logging, locale, xmpp, defs, configpaths, LegacyContactsAPI, Events, avahi, pybonjour, Crypto, GnuPGInterface, system, farsight, gst, caps_cache


Function Details [hide private]

get_nick_from_jid(jid)

source code 

get_server_from_jid(jid)

source code 

get_name_and_server_from_jid(jid)

source code 

get_room_and_nick_from_fjid(jid)

source code 

get_real_jid_from_fjid(account, fjid)

source code 
Return real jid or returns None, if we don't know the real jid

get_room_from_fjid(jid)

source code 

get_contact_name_from_jid(account, jid)

source code 

get_jid_without_resource(jid)

source code 

construct_fjid(room_jid, nick)

source code 
Nick is in UTF-8 (taken from treeview); room_jid is in unicode

get_resource_from_jid(jid)

source code 

get_number_of_accounts()

source code 
Return the number of ALL accounts

get_number_of_connected_accounts(accounts_list=None)

source code 
Returns the number of CONNECTED accounts. Uou can optionally pass an accounts_list and if you do those will be checked, else all will be checked

account_is_connected(account)

source code 

account_is_disconnected(account)

source code 

zeroconf_is_connected()

source code 

get_number_of_securely_connected_accounts()

source code 
Return the number of the accounts that are SSL/TLS connected

account_is_securely_connected(account)

source code 

get_transport_name_from_jid(jid, use_config_setting=True)

source code 

Returns 'aim', 'gg', 'irc' etc

If JID is not from transport returns None.

jid_is_transport(jid)

source code 

get_jid_from_account(account_name)

source code 
Return the jid we use in the given account

get_our_jids()

source code 
Returns a list of the jids we use in our accounts

get_hostname_from_account(account_name, use_srv=False)

source code 
Returns hostname (if custom hostname is used, that is returned)

get_notification_image_prefix(jid)

source code 
Returns the prefix for the notification images

get_name_from_jid(account, jid)

source code 
Return from JID's shown name and if no contact returns jids

get_priority(account, show)

source code 
Return the priority an account must have

Variables Details [hide private]

interface

Value:
None

thread_interface

Value:
None

config

Value:
config.Config()

version

Value:
config.get('version')

connections

Value:
{}

ipython_window

Value:
None

ged

Value:
None

nec

Value:
None

plugin_manager

Value:
None

log

Value:
logging.getLogger('gajim')

logger

Value:
logger.Logger()

gajimpaths

Value:
ConfigPaths()

VCARD_PATH

Value:
gajimpaths ['VCARD']

AVATAR_PATH

Value:
gajimpaths ['AVATAR']

MY_EMOTS_PATH

Value:
gajimpaths ['MY_EMOTS']

MY_ICONSETS_PATH

Value:
gajimpaths ['MY_ICONSETS']

MY_MOOD_ICONSETS_PATH

Value:
gajimpaths ['MY_MOOD_ICONSETS']

MY_ACTIVITY_ICONSETS_PATH

Value:
gajimpaths ['MY_ACTIVITY_ICONSETS']

MY_CACERTS

Value:
gajimpaths ['MY_CACERTS']

TMP

Value:
gajimpaths ['TMP']

DATA_DIR

Value:
gajimpaths ['DATA']

ICONS_DIR

Value:
gajimpaths ['ICONS']

HOME_DIR

Value:
gajimpaths ['HOME']

PLUGINS_DIRS

Value:
[gajimpaths ['PLUGINS_BASE'], gajimpaths ['PLUGINS_USER']]

PLUGINS_CONFIG_DIR

Value:
gajimpaths ['PLUGINS_CONFIG_DIR']

LANG

Value:
LANG [: 2]

os_info

Value:
None

gmail_domains

Value:
['gmail.com', 'googlemail.com']

transport_type

Value:
{}

last_message_time

Value:
{}

encrypted_chats

Value:
{}

contacts

Value:
LegacyContactsAPI()

gc_connected

Value:
{}

gc_passwords

Value:
{}

automatic_rooms

Value:
{}

new_room_nick

Value:
None

groups

Value:
{}

newly_added

Value:
{}

to_be_removed

Value:
{}

events

Value:
Events()

nicks

Value:
{}

block_signed_in_notifications

Value:
{}

con_types

Value:
{}

sleeper_state

Value:
{}

status_before_autoaway

Value:
{}

transport_avatar

Value:
{}

single_click

Value:
False

SHOW_LIST

Value:
['offline', 'connecting', 'online', 'chat', 'away', 'xa', 'dnd', 'invi\
sible', 'error']

ZEROCONF_ACC_NAME

Value:
'Local'

HAVE_ZEROCONF

Value:
False

HAVE_PYCRYPTO

Value:
False

HAVE_GPG

Value:
False

HAVE_LATEX

Value:
False

HAVE_FARSIGHT

Value:
False

gajim_identity

Value:
{'type': 'pc', 'category': 'client', 'name': 'Gajim'}

gajim_common_features

Value:
[xmpp.NS_BYTESTREAM, xmpp.NS_SI, xmpp.NS_FILE, xmpp.NS_MUC, xmpp.NS_MU\
C_USER, xmpp.NS_MUC_ADMIN, xmpp.NS_MUC_OWNER, xmpp.NS_MUC_CONFIG, xmpp\
.NS_COMMANDS, xmpp.NS_DISCO_INFO, 'ipv6', 'jabber:iq:gateway', xmpp.NS\
_LAST, xmpp.NS_PRIVACY, xmpp.NS_PRIVATE, xmpp.NS_REGISTER, xmpp.NS_VER\
SION, xmpp.NS_DATA, xmpp.NS_ENCRYPTED, 'msglog', 'sslc2s', 'stringprep\
', xmpp.NS_PING, xmpp.NS_TIME_REVISED, xmpp.NS_SSN, xmpp.NS_MOOD, xmpp\
.NS_ACTIVITY, xmpp.NS_NICK, xmpp.NS_ROSTERX, xmpp.NS_SECLABEL]

gajim_optional_features

Value:
{}

caps_hash

Value:
{}