|
| enum | MsgID {
CallCdr = 0
, UiAction
, UserLogin
, UserNotify
,
ResourceNotify
, ResourceSubscribe
, ClientChanUpdate
, UserRoster
,
ContactInfo
, ChanNotify
, MucRoom
, MsgExecute
,
EngineStart
, TransferNotify
, UserData
, FileInfo
,
MsgIdCount
} |
| |
| enum | ClientToggle {
OptMultiLines = 0
, OptAutoAnswer
, OptRingIn
, OptRingOut
,
OptActivateLastOutCall
, OptActivateLastInCall
, OptActivateCallOnSelect
, OptKeypadVisible
,
OptOpenIncomingUrl
, OptAddAccountOnStartup
, OptDockedChat
, OptDestroyChat
,
OptNotifyChatState
, OptShowEmptyChat
, OptSendEmptyChat
, OptCount
} |
| |
| enum | TrayIconType {
TrayIconMain = 0
, TrayIconInfo = 1000
, TrayIconIncomingChat = 3000
, TrayIconNotification = 5000
,
TrayIconIncomingCall = 10000
} |
| |
|
| | Client (const char *name=0) |
| |
| virtual | ~Client () |
| |
| virtual bool | startup () |
| |
| virtual void | run () |
| |
| virtual void | cleanup () |
| |
| virtual void | main ()=0 |
| |
| virtual void | lock ()=0 |
| |
| virtual void | unlock ()=0 |
| |
| void | lockOther () |
| |
| void | unlockOther () |
| |
| void | setThread (Thread *th) |
| |
| virtual void | allHidden ()=0 |
| |
| void | loadUI (const char *file=0, bool init=true) |
| |
| virtual void | quit ()=0 |
| |
| bool | openUrlSafe (const String &url) |
| |
| virtual bool | openUrl (const String &url)=0 |
| |
| virtual bool | received (Message &msg, int id) |
| |
| virtual bool | createWindowSafe (const String &name, const String &alias=String::empty()) |
| |
| virtual bool | createDialog (const String &name, Window *parent, const String &title, const String &alias=String::empty(), const NamedList *params=0) |
| |
| virtual bool | createObject (void **dest, const String &type, const char *name, NamedList *params=0) |
| |
| virtual bool | closeWindow (const String &name, bool hide=true) |
| |
| virtual bool | closeDialog (const String &name, Window *wnd, Window *skip=0) |
| |
| virtual bool | debugHook (bool active) |
| |
| virtual bool | addToLog (const String &text) |
| |
| virtual bool | setStatus (const String &text, Window *wnd=0) |
| |
| bool | setStatusLocked (const String &text, Window *wnd=0) |
| |
| bool | setParams (const NamedList *params, Window *wnd=0, Window *skip=0) |
| |
| virtual bool | action (Window *wnd, const String &name, NamedList *params=0) |
| |
| virtual bool | toggle (Window *wnd, const String &name, bool active) |
| |
| virtual bool | select (Window *wnd, const String &name, const String &item, const String &text=String::empty()) |
| |
| virtual bool | select (Window *wnd, const String &name, const NamedList &items) |
| |
| bool | oneThread () const |
| |
| int | line () const |
| |
| void | line (int newLine) |
| |
|
bool | hasElement (const String &name, Window *wnd=0, Window *skip=0) |
| |
|
bool | setActive (const String &name, bool active, Window *wnd=0, Window *skip=0) |
| |
|
bool | setFocus (const String &name, bool select=false, Window *wnd=0, Window *skip=0) |
| |
|
bool | setShow (const String &name, bool visible, Window *wnd=0, Window *skip=0) |
| |
|
bool | setText (const String &name, const String &text, bool richText=false, Window *wnd=0, Window *skip=0) |
| |
|
bool | setCheck (const String &name, bool checked, Window *wnd=0, Window *skip=0) |
| |
|
bool | setSelect (const String &name, const String &item, Window *wnd=0, Window *skip=0) |
| |
|
bool | setUrgent (const String &name, bool urgent, Window *wnd=0, Window *skip=0) |
| |
|
bool | hasOption (const String &name, const String &item, Window *wnd=0, Window *skip=0) |
| |
| virtual bool | getOptions (const String &name, NamedList *items, Window *wnd=0, Window *skip=0) |
| |
|
bool | addOption (const String &name, const String &item, bool atStart, const String &text=String::empty(), Window *wnd=0, Window *skip=0) |
| |
|
bool | delOption (const String &name, const String &item, Window *wnd=0, Window *skip=0) |
| |
| bool | addLines (const String &name, const NamedList *lines, unsigned int max, bool atStart=false, Window *wnd=0, Window *skip=0) |
| |
|
bool | addTableRow (const String &name, const String &item, const NamedList *data=0, bool atStart=false, Window *wnd=0, Window *skip=0) |
| |
| bool | setMultipleRows (const String &name, const NamedList &data, const String &prefix=String::empty(), Window *wnd=0, Window *skip=0) |
| |
| bool | insertTableRow (const String &name, const String &item, const String &before, const NamedList *data=0, Window *wnd=0, Window *skip=0) |
| |
|
bool | delTableRow (const String &name, const String &item, Window *wnd=0, Window *skip=0) |
| |
|
bool | setTableRow (const String &name, const String &item, const NamedList *data, Window *wnd=0, Window *skip=0) |
| |
|
bool | getTableRow (const String &name, const String &item, NamedList *data=0, Window *wnd=0, Window *skip=0) |
| |
|
bool | clearTable (const String &name, Window *wnd=0, Window *skip=0) |
| |
| bool | updateTableRow (const String &name, const String &item, const NamedList *data=0, bool atStart=false, Window *wnd=0, Window *skip=0) |
| |
| bool | updateTableRows (const String &name, const NamedList *data, bool atStart=false, Window *wnd=0, Window *skip=0) |
| |
| bool | setBusy (const String &name, bool on, Window *wnd=0, Window *skip=0) |
| |
| bool | getText (const String &name, String &text, bool richText=false, Window *wnd=0, Window *skip=0) |
| |
|
bool | getCheck (const String &name, bool &checked, Window *wnd=0, Window *skip=0) |
| |
|
bool | getSelect (const String &name, String &item, Window *wnd=0, Window *skip=0) |
| |
| bool | getSelect (const String &name, NamedList &items, Window *wnd=0, Window *skip=0) |
| |
| bool | buildMenu (const NamedList ¶ms, Window *wnd=0, Window *skip=0) |
| |
| bool | removeMenu (const NamedList ¶ms, Window *wnd=0, Window *skip=0) |
| |
| virtual bool | setImage (const String &name, const String &image, Window *wnd=0, Window *skip=0) |
| |
| virtual bool | setImageFit (const String &name, const String &image, Window *wnd=0, Window *skip=0) |
| |
| virtual bool | setProperty (const String &name, const String &item, const String &value, Window *wnd=0, Window *skip=0) |
| |
| virtual bool | getProperty (const String &name, const String &item, String &value, Window *wnd=0, Window *skip=0) |
| |
|
void | moveRelated (const Window *wnd, int dx, int dy) |
| |
|
bool | initialized () const |
| |
|
void | idleActions () |
| |
| bool | postpone (const Message &msg, int id, bool copyUserData=false) |
| |
| virtual bool | chooseFile (Window *parent, NamedList ¶ms) |
| |
| virtual bool | setClientParam (const String ¶m, const String &value, bool save, bool update) |
| |
| virtual bool | backspace (const String &name, Window *wnd=0) |
| |
| void | installRelay (const char *name, int id, int prio) |
| |
| virtual bool | callRouting (Message &msg) |
| |
| virtual bool | imRouting (Message &msg) |
| |
| virtual bool | imExecute (Message &msg) |
| |
| virtual bool | buildIncomingChannel (Message &msg, const String &dest) |
| |
| virtual bool | buildOutgoingChannel (NamedList ¶ms) |
| |
| bool | callIncoming (Message &msg, const String &dest) |
| |
| void | callAnswer (const String &id, bool setActive=true) |
| |
| void | callTerminate (const String &id, const char *reason=0, const char *error=0) |
| |
| ClientChannel * | getActiveChannel () |
| |
| virtual bool | ringer (bool in, bool on) |
| |
| virtual bool | createSound (const char *name, const char *file, const char *device=0) |
| |
| bool | emitDigits (const char *digits, const String &id=String::empty()) |
| |
| bool | emitDigit (char digit, const String &id=String::empty()) |
| |
| bool | getBoolOpt (ClientToggle toggle) |
| |
| bool | setBoolOpt (ClientToggle toggle, bool value, bool updateUi=false) |
| |
| virtual bool | formatDateTime (String &dest, unsigned int secs, const char *format, bool utc=false) |
| |
| | GenObject () |
| |
| virtual | ~GenObject () |
| |
| virtual bool | alive () const |
| |
| virtual void | destruct () |
| |
| virtual const String & | toString () const |
| |
| virtual const String & | traceId () const |
| |
| virtual void * | getObject (const String &name) const |
| |
| NamedCounter * | getObjCounter () const |
| |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
| |
|
|
static Client * | self () |
| |
|
static void | setSelf (Client *client) |
| |
| static bool | valid () |
| |
| static bool | isClientMsg (Message &msg) |
| |
|
static bool | changing () |
| |
|
static Window * | getWindow (const String &name) |
| |
|
static bool | setVisible (const String &name, bool show=true, bool activate=false) |
| |
|
static bool | getVisible (const String &name) |
| |
|
static bool | openPopup (const String &name, const NamedList *params=0, const Window *parent=0) |
| |
|
static bool | openMessage (const char *text, const Window *parent=0, const char *context=0) |
| |
|
static bool | openConfirm (const char *text, const Window *parent=0, const char *context=0) |
| |
|
static ObjList * | listWindows () |
| |
| static bool | exiting () |
| |
| static bool | getActive (const String &name) |
| |
| static Message * | buildMessage (const char *msg, const String &account, const char *oper=0) |
| |
| static Message * | buildNotify (bool online, const String &account, const ClientResource *from=0) |
| |
| static Message * | buildSubscribe (bool request, bool ok, const String &account, const String &contact, const char *proto=0) |
| |
| static Message * | buildUserRoster (bool update, const String &account, const String &contact, const char *proto=0) |
| |
| static bool | addLogic (ClientLogic *logic) |
| |
| static void | removeLogic (ClientLogic *logic) |
| |
| static ClientLogic * | findLogic (const String &name) |
| |
| static Message * | eventMessage (const String &event, Window *wnd=0, const char *name=0, NamedList *params=0) |
| |
| static bool | save (Configuration &cfg, Window *parent=0, bool showErr=true) |
| |
| static ClientToggle | getBoolOpt (const String &name) |
| |
| static void | setLogicsTick () |
| |
| static void | appendEscape (String &buf, ObjList &list, char sep=',', bool force=false) |
| |
| static ObjList * | splitUnescape (const String &buf, char sep=',', bool emptyOk=false) |
| |
| static void | removeChars (String &buf, const char *chars) |
| |
| static void | fixPhoneNumber (String &number, const char *chars=0) |
| |
| static bool | addTrayIcon (const String &wndName, int prio, NamedList *params) |
| |
| static bool | removeTrayIcon (const String &wndName, const String &name) |
| |
| static bool | updateTrayIcon (const String &wndName) |
| |
| static void | generateGuid (String &buf, const String &extra=String::empty()) |
| |
| static void | plain2html (String &buf, bool spaceEol=false) |
| |
| static NamedString * | findParamByValue (NamedList &list, const String &value, NamedString *skip=0) |
| |
| static int | decodeFlags (const TokenDict *dict, const NamedList ¶ms, const String &prefix=String::empty()) |
| |
| static int | decodeFlags (const TokenDict *dict, const String &flags, int defVal=0) |
| |
| static void | addPathSep (String &dest, const String &path, char sep=0) |
| |
| static void | fixPathSep (String &path) |
| |
| static bool | removeEndsWithPathSep (String &dest, const String &path, char sep=0) |
| |
| static bool | getLastNameInPath (String &dest, const String &path, char sep=0) |
| |
| static bool | removeLastNameInPath (String &dest, const String &path, char sep=0, const String &equalOnly=String::empty()) |
| |
| static bool | addToLogFormatted (const char *format,...) |
| |
| static void * | getObject (const String &name, const GenObject *obj) |
| |
| static bool | getObjCounting () |
| |
| static void | setObjCounting (bool enable) |
| |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| |
| static ObjList & | getObjCounters () |
| |
Class that runs the User Interface.
Singleton class that holds the User Interface's main methods