KIO
Go to the documentation of this file.
26 #include <QVBoxLayout>
30 class KStatusBarOfflineIndicatorPrivate
39 void _k_networkStatusChanged( Solid::Networking::Status status );
46 d( new KStatusBarOfflineIndicatorPrivate( this ) )
48 QVBoxLayout * layout =
new QVBoxLayout(
this );
49 layout->setMargin( 2 );
51 label->setPixmap(
SmallIcon(
"network-disconnect") );
52 label->setToolTip(
i18n(
"The desktop is offline" ) );
53 layout->addWidget( label );
55 connect( Solid::Networking::notifier(), SIGNAL(statusChanged(Solid::Networking::Status)),
56 SLOT(_k_networkStatusChanged(Solid::Networking::Status)) );
64 void KStatusBarOfflineIndicatorPrivate::initialize()
66 _k_networkStatusChanged( Solid::Networking::status());
69 void KStatusBarOfflineIndicatorPrivate::_k_networkStatusChanged( Solid::Networking::Status status )
71 if ( status == Solid::Networking::Connected || status == Solid::Networking::Unknown ) {
78 #include "kstatusbarofflineindicator.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 12:08:33 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.