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$). |
QString BoolToStr | ( | bool & | value | ) |
Convert bool to string
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.
bool StrToBool | ( | QString & | value | ) |
Convert string "true" and "false" to boolean
void unsupported_options | ( | char * | erreur, | |
const QString & | usage | |||
) |
command line error
bool validatePort | ( | const int & | port | ) |
Test if TCP port is valid
port | port number |
true | TCP port is valid | |
false | TCP port is not valid |
void writeConfigFile | ( | ) |
Save configuration file (create if not exist)
bool autoconnect = false |
Autoconnect when qtsmbstatus start.
QString host = "127.0.0.1" |
bool iconize = true |
Iconize QtSmbstatus on system tray.
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$).