main_windows Class Reference

Main Window. More...

Inheritance diagram for main_windows:

Ui::form_smbstatus Ui_form_smbstatus

List of all members.

Public Slots

void beforeQuit ()

Signals

void refreshviewlog (const type_message &)

Public Member Functions

 main_windows (QWidget *parent=0)
virtual ~main_windows ()

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)

Private Types

enum  T_Direction { to_first, to_preview, to_next }
 direction of search More...
enum  T_Item {
  T_All, T_Machine, T_User, T_Share,
  T_File
}
 type of search (a machine, an user, ...) More...

Private Slots

virtual void AllSearchSlot ()
void configuration_changed ()
virtual void ConfigureSlot ()
virtual void FileSearchSlot ()
virtual void helpAbout ()
virtual void helpAboutQt ()
void InfoSMB ()
 Info CIFS/SMB for log and balloon messages.
virtual void MachineSearchSlot ()
virtual void NextSlot ()
void on_action_View_log_triggered ()
void restore_minimize ()
virtual void ShareSearchSlot ()
virtual void SignalErrorAuth ()
virtual void Slot_connect ()
virtual void socketclosed ()
virtual void socketconnected ()
void trayicon_activated (QSystemTrayIcon::ActivationReason reason)
virtual void UserSearchSlot ()

Private Member Functions

void comboBox_valid ()
QString getSearchStr (const QString &msg)
Q3ListViewItem * nextItem (Q3ListViewItem *item)
void open_dialog_for_login ()
void readHistoryFile ()
void restoreWindowSize ()
void saveWindowSize ()
void search (T_Item typeOfSearch, const QString &str, T_Direction direction=to_first)
void selectItem (Q3ListViewItem *item)
void writeHistoryFile ()

Private Attributes

ClientSocketclientsocket
QAction * configure_action
QAction * connect_action
bool connected
T_Item currentSearchItem
QString currentSearchStr
Q3ListViewItem * FindItem
bool firstTime
LogFormlogform
QAction * restore_action
QSystemTrayIcon * trayicon
QAction * viewlog_action


Detailed Description

Main Window.

Date:
2007-06-17
Version:
1.0
Author:
Daniel Rocher

Member Enumeration Documentation

enum main_windows::T_Direction [private]

direction of search

Enumerator:
to_first 
to_preview 
to_next 

enum main_windows::T_Item [private]

type of search (a machine, an user, ...)

Enumerator:
T_All 
T_Machine 
T_User 
T_Share 
T_File 


Constructor & Destructor Documentation

main_windows::main_windows ( QWidget *  parent = 0  ) 

main_windows::~main_windows (  )  [virtual]


Member Function Documentation

void main_windows::AllSearchSlot (  )  [private, virtual, slot]

Find items

void main_windows::beforeQuit (  )  [slot]

Before quit qtsmbstatus-client

void main_windows::closeEvent ( QCloseEvent *  e  )  [protected, virtual]

On close event.

void main_windows::comboBox_valid (  )  [private]

address lists 20 Max addresses

void main_windows::configuration_changed (  )  [private, slot]

When configuration changed

See also:
configure_windows

void main_windows::ConfigureSlot (  )  [private, virtual, slot]

Configure qtsmbstatus client (open form)

See also:
configure_windows

void main_windows::FileSearchSlot (  )  [private, virtual, slot]

Find a file

QString main_windows::getSearchStr ( const QString &  msg  )  [private]

input dialogbox. Find a machine, an user, ...

Parameters:
msg label of dialogbox
Returns:
criteria of search
See also:
AllSearchSlot MachineSearchSlot UserSearchSlot ShareSearchSlot FileSearchSlot

void main_windows::helpAbout (  )  [private, virtual, slot]

menu Help/helpAbout

void main_windows::helpAboutQt (  )  [private, virtual, slot]

menu Help/helpAboutQt

void main_windows::InfoSMB (  )  [private, slot]

Info CIFS/SMB for log and balloon messages.

Info CIFS/SMB for log and balloon messages

void main_windows::MachineSearchSlot (  )  [private, virtual, slot]

Find a machine

Q3ListViewItem * main_windows::nextItem ( Q3ListViewItem *  item  )  [private]

Find next item.

Parameters:
item pointer on item
Returns:
pointer on next item
See also:
selectItem search

void main_windows::NextSlot (  )  [private, virtual, slot]

Find next.

See also:
AllSearchSlot MachineSearchSlot UserSearchSlot ShareSearchSlot FileSearchSlot

void main_windows::on_action_View_log_triggered (  )  [private, slot]

View log

See also:
LogForm

void main_windows::open_dialog_for_login (  )  [private]

Open authentication dialogbox

See also:
login_windows ClientSocket

void main_windows::readHistoryFile (  )  [private]

Read the address history. On startup, read history.

void main_windows::refreshviewlog ( const type_message _t1  )  [signal]

void main_windows::restore_minimize (  )  [private, slot]

When user restore or minimize windows

void main_windows::restoreWindowSize (  )  [private]

restore window size

See also:
saveWindowSize
On startup, restore windows size.

void main_windows::saveWindowSize (  )  [private]

save window size

See also:
restoreWindowSize
Before quit, save window size

void main_windows::search ( T_Item  typeOfSearch,
const QString &  str,
T_Direction  direction = to_first 
) [private]

Search item.

Parameters:
typeOfSearch see T_Item
str string to search
direction see T_direction
See also:
T_Item T_direction selectItem

void main_windows::selectItem ( Q3ListViewItem *  item  )  [private]

Select item and open parents (if it's possible)

Parameters:
item pointer on QListViewItem
See also:
nextItem search

void main_windows::ShareSearchSlot (  )  [private, virtual, slot]

Find a share

void main_windows::SignalErrorAuth (  )  [private, virtual, slot]

Bad login or bad password.

See also:
ClientSocket::SignalErrorAuth

void main_windows::Slot_connect (  )  [private, virtual, slot]

Slot connect. If connected, disconnect.

void main_windows::socketclosed (  )  [private, virtual, slot]

Slot socketclosed. When client is disconnected

See also:
ClientSocket

void main_windows::socketconnected (  )  [private, virtual, slot]

Slot connected. When client is connected to server

See also:
Slot_connect ClientSocket

void main_windows::trayicon_activated ( QSystemTrayIcon::ActivationReason  reason  )  [private, slot]

Connected to signal when the user activates the system tray icon

Parameters:
reason describes the reason the system tray was activated
See also:
restore_minimize

void main_windows::UserSearchSlot (  )  [private, virtual, slot]

Find an user

void main_windows::writeHistoryFile (  )  [private]

Write address history. Before quit, write history.


Member Data Documentation

ClientSocket* main_windows::clientsocket [private]

QAction* main_windows::configure_action [private]

QAction* main_windows::connect_action [private]

bool main_windows::connected [private]

T_Item main_windows::currentSearchItem [private]

QString main_windows::currentSearchStr [private]

Q3ListViewItem* main_windows::FindItem [private]

bool main_windows::firstTime [private]

LogForm* main_windows::logform [private]

QAction* main_windows::restore_action [private]

QSystemTrayIcon* main_windows::trayicon [private]

QAction* main_windows::viewlog_action [private]


The documentation for this class was generated from the following files:
Generated on Fri Nov 2 21:44:59 2007 for qtsmbstatus.kdevelop by  doxygen 1.5.3