client/main.cpp File Reference


Functions

QString BoolToStr (bool &value)
void convertto201 ()
int main (int argc, char *argv[])
void readConfigFile ()
bool StrToBool (QString &value)
void unsupported_options (char *erreur, const QString &usage)
 command line error
bool validatePort (const int &port)
void writeConfigFile ()

Variables

bool autoconnect = false
 Autoconnect when qtsmbstatus start.
QString host = "127.0.0.1"
bool iconize = true
 Iconize QtSmbstatus on system tray.
uint int_qtsmbstatus_version
int interval = 10
 Interval, in seconds, between every request to smbstatus.
int limitLog = 1
 limit log (number of days)
bool log_activity = false
 log SMB/CIFS activities
QString passwd_login = ""
bool show_messages = true
 show status notification messages (balloon messages)
QString username_login = "root"
bool view_hidden_shares = true
 View hidden shares (share$).

Function Documentation

QString BoolToStr ( bool &  value  ) 

Convert bool to string

See also:
StrToBool

void convertto201 (  ) 

Convert QtSmbstatus config file to new format 2.0.1. We never use .qtsmbstatus.conf (replaced by QSetting). Read old file and save setting

int main ( int  argc,
char *  argv[] 
)

void readConfigFile (  ) 

Read configuration file.

See also:
writeConfigFile

bool StrToBool ( QString &  value  ) 

Convert string "true" and "false" to boolean

See also:
BoolToStr

void unsupported_options ( char *  erreur,
const QString &  usage 
)

command line error

bool validatePort ( const int &  port  ) 

Test if TCP port is valid

Parameters:
port port number
Return values:
true TCP port is valid
false TCP port is not valid

void writeConfigFile (  ) 

Save configuration file (create if not exist)

See also:
readConfigFile


Variable Documentation

bool autoconnect = false

Autoconnect when qtsmbstatus start.

QString host = "127.0.0.1"

bool iconize = true

Iconize QtSmbstatus on system tray.

uint int_qtsmbstatus_version

int interval = 10

Interval, in seconds, between every request to smbstatus.

int limitLog = 1

limit log (number of days)

bool log_activity = false

log SMB/CIFS activities

QString passwd_login = ""

bool show_messages = true

show status notification messages (balloon messages)

QString username_login = "root"

bool view_hidden_shares = true

View hidden shares (share$).


Generated on Fri Nov 2 21:44:59 2007 for qtsmbstatus.kdevelop by  doxygen 1.5.3