Easemob Windows SDK
|
Public Types | |
enum | OSType { OS_IOS = 0, OS_ANDROID = 1, OS_LINUX = 2, OS_OSX = 3, OS_MSWIN = 4, OS_OTHER = 16 } |
enum | EMLogLevel { DEBUG_LEVEL, WARNING_LEVEL, ERROR_LEVEL } |
Public Member Functions | |
EMChatConfigs (const std::string &resourcePath, const std::string &workPath, const std::string &appkey, unsigned int deviceId=0) | |
void | setUsingHttps (bool usingHttps) |
bool | getUsingHttps () |
void | setUseEncryption (bool useEncryption) |
bool | getUseEncryption () |
void | setSortMessageByServerTime (bool sortByServerTime) |
bool | getSortMessageByServerTime () |
void | setNetCallback (const EMNetCallbackPtr callback) |
EMNetCallbackPtr | getNetCallback () |
const std::string & | getResourcePath () const |
Get the resource path. More... | |
const std::string & | getWorkPath () const |
Get the work path. More... | |
void | setLogPath (const std::string &path) |
Set the log path. More... | |
const std::string & | getLogPath () const |
void | setDownloadPath (const std::string &path) |
Set the download path. More... | |
const std::string & | getDownloadPath () const |
void | setAppKey (const std::string &appKey) |
Set the app key. More... | |
const std::string & | getAppKey () const |
void | setIsSandboxMode (bool b) |
set sandbox mode. More... | |
bool | getIsSandboxMode () const |
get sandbox mode. More... | |
void | setEnableConsoleLog (bool b) |
set if output the log to console. More... | |
bool | getEnableConsoleLog () const |
get if output the log to console. More... | |
void | setAutoAcceptFriend (bool b) |
set if auto accept friend invitation. More... | |
bool | getAutoAcceptFriend () const |
get if auto accept friend invitation. More... | |
void | setAutoAcceptGroup (bool b) |
set if auto accept group invitation. More... | |
bool | getAutoAcceptGroup () const |
get if auto accept group invitation. More... | |
void | setRequireReadAck (bool b) |
set if need message read ack. More... | |
bool | getRequireReadAck () const |
get if need message read ack. More... | |
void | setRequireDeliveryAck (bool b) |
set if need message delivery ack. More... | |
bool | getRequireDeliveryAck () const |
get if need message delivery ack. More... | |
void | setRequireServerAck (bool b) |
set if need message server receive ack. More... | |
bool | getRequireServerAck () const |
get if need message server receive ack. More... | |
void | setAutoConversationLoaded (bool b) |
set if need load all conversation when login. More... | |
bool | getAutoConversationLoaded () const |
get if load all conversation when login. More... | |
void | setDeleteMessageAsExitGroup (bool b) |
set if delete message when exit group. More... | |
bool | getDeleteMessageAsExitGroup () const |
get if delete message when exit group. More... | |
void | setIsChatroomOwnerLeaveAllowed (bool b) |
set if chatroom owner can leave. More... | |
bool | getIsChatroomOwnerLeaveAllowed () const |
get if chatroom owner can leave. More... | |
void | setNumOfMessageLoaded (int n) |
set the number of message load at first time. More... | |
int | getNumOfMessageLoaded () const |
get the number of message load at first time. More... | |
void | setOs (const OSType os) |
set os type. More... | |
OSType | getOs () const |
get os type. More... | |
void | setOsVersion (const std::string &version) |
set os version. More... | |
const std::string & | getOsVersion () const |
get os version. More... | |
void | setSdkVersion (const std::string &version) |
set sdk version. More... | |
const std::string & | getSdkVersion () const |
get sdk version. More... | |
unsigned int | getDeviceID () const |
get device unique id. More... | |
void | setClientResource (const std::string &resource) |
set client resource More... | |
const std::string & | clientResource () |
get client resource More... | |
void | setLogLevel (EMLogLevel level) |
Set log output level. More... | |
EMChatPrivateConfigs & | privateConfigs () |
void | setDeleteMessageAsExitChatRoom (bool b) |
bool | getDeleteMessageAsExitChatRoom () |
|
inline |
get client resource
|
inline |
get if auto accept friend invitation.
NA. |
|
inline |
get if auto accept group invitation.
NA. |
|
inline |
get if load all conversation when login.
NA. |
|
inline |
get if delete message when exit group.
NA. |
|
inline |
get device unique id.
NA. |
|
inline |
get if output the log to console.
true | or false. |
|
inline |
get if chatroom owner can leave.
NA. |
|
inline |
get sandbox mode.
NA. |
|
inline |
get the number of message load at first time.
Default is 20.
|
inline |
get os type.
NA. |
|
inline |
get os version.
NA. |
|
inline |
get if need message delivery ack.
NA. |
|
inline |
get if need message read ack.
NA. |
|
inline |
get if need message server receive ack.
NA. |
|
inline |
Get the resource path.
NA. |
|
inline |
get sdk version.
NA. |
|
inline |
Get the work path.
NA. |
|
inline |
Set the app key.
NA. |
|
inline |
set if auto accept friend invitation.
Default is false.
true | or false. |
|
inline |
set if auto accept group invitation.
Default is true.
true | or false. |
|
inline |
set if need load all conversation when login.
Default is true.
true | or false. |
|
inline |
set client resource
resource |
|
inline |
set if delete message when exit group.
Default is true.
true | or false. |
|
inline |
Set the download path.
Note: This path can't change in run time.
NA. |
|
inline |
set if output the log to console.
Default is false.
true | or false. |
|
inline |
set if chatroom owner can leave.
Default is true.
true | or false. |
|
inline |
set sandbox mode.
Default is false.
true | or false. |
void easemob::EMChatConfigs::setLogLevel | ( | EMLogLevel | level | ) |
Set log output level.
log | output level |
|
inline |
Set the log path.
Note: This path can't change in run time.
NA. |
|
inline |
set the number of message load at first time.
Default is 20.
true | or false. |
|
inline |
set os type.
os | type. |
|
inline |
set os version.
os | version. |
|
inline |
set if need message delivery ack.
Default is false.
true | or false. |
|
inline |
set if need message read ack.
Default is true.
true | or false. |
|
inline |
set if need message server receive ack.
Default is true.
true | or false. |
|
inline |
set sdk version.
sdk | version. |