summaryrefslogtreecommitdiff
path: root/core
authorschurig <schurig>2004-09-10 08:04:41 (UTC)
committer schurig <schurig>2004-09-10 08:04:41 (UTC)
commit1ce7786a16ee7b9679391090eeedc4cbcaab81ca (patch) (side-by-side diff)
tree93e562be7ff03ade88d3cc9838c8420a02a5ff8d /core
parent0209835eb255beb66cf021c02e659ed8ab02dcd1 (diff)
downloadopie-1ce7786a16ee7b9679391090eeedc4cbcaab81ca.zip
opie-1ce7786a16ee7b9679391090eeedc4cbcaab81ca.tar.gz
opie-1ce7786a16ee7b9679391090eeedc4cbcaab81ca.tar.bz2
whitespace changes
Diffstat (limited to 'core') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/serverapp.cpp46
1 files changed, 28 insertions, 18 deletions
diff --git a/core/launcher/serverapp.cpp b/core/launcher/serverapp.cpp
index f1bce40..a2302d8 100644
--- a/core/launcher/serverapp.cpp
+++ b/core/launcher/serverapp.cpp
@@ -59,24 +59,30 @@ static int loggedin=0;
QCopKeyRegister::QCopKeyRegister()
- : m_keyCode( 0 ) {
+ : m_keyCode( 0 )
+{
}
QCopKeyRegister::QCopKeyRegister( int k, const QCString& c, const QCString& m )
- :m_keyCode( k ), m_channel( c ), m_message( m ) {
+ :m_keyCode( k ), m_channel( c ), m_message( m )
+{
}
-int QCopKeyRegister::keyCode()const {
+int QCopKeyRegister::keyCode() const
+{
return m_keyCode;
}
-QCString QCopKeyRegister::channel()const {
+QCString QCopKeyRegister::channel() const
+{
return m_channel;
}
-QCString QCopKeyRegister::message()const {
+QCString QCopKeyRegister::message() const
+{
return m_message;
}
-bool QCopKeyRegister::send() {
+bool QCopKeyRegister::send()
+{
if (m_channel.isNull() )
return false;
@@ -158,13 +164,16 @@ void KeyFilter::timerEvent(QTimerEvent* e)
}
-void KeyFilter::registerKey( const QCopKeyRegister& key ) {
+void KeyFilter::registerKey( const QCopKeyRegister& key )
+{
m_keys.insert( key.keyCode(), key );
}
-void KeyFilter::unregisterKey( const QCopKeyRegister& key ) {
+void KeyFilter::unregisterKey( const QCopKeyRegister& key )
+{
m_keys.remove( key.keyCode() );
}
-bool KeyFilter::keyRegistered( int key ) {
+bool KeyFilter::keyRegistered( int key )
+{
/*
* Check if we've a key registered
@@ -174,5 +183,4 @@ bool KeyFilter::keyRegistered( int key ) {
else
return true;
-
}
@@ -198,5 +206,4 @@ bool KeyFilter::checkButtonAction(bool db, int keycode, int press, int autoRepe
}else {
-
// First check to see if DeviceButtonManager knows something about this button:
const ODeviceButton* button = ODevice::inst()->buttonForKeycode(keycode);
@@ -267,5 +274,6 @@ bool ServerApplication::allowRestart = TRUE;
bool ServerApplication::ms_is_starting = TRUE;
-void ServerApplication::switchLCD( bool on ) {
+void ServerApplication::switchLCD( bool on )
+{
if ( !qApp )
return;
@@ -360,5 +368,4 @@ ServerApplication::~ServerApplication()
ungrabKeyboard();
-
delete pa;
delete m_ps;
@@ -366,5 +373,6 @@ ServerApplication::~ServerApplication()
}
-void ServerApplication::apmTimeout() {
+void ServerApplication::apmTimeout()
+{
serverApp-> checkMemory( ); // in case no events are generated
*m_ps_last = *m_ps;
@@ -409,5 +417,6 @@ void ServerApplication::apmTimeout() {
void ServerApplication::systemMessage( const QCString& msg,
- const QByteArray& data ) {
+ const QByteArray& data )
+{
QDataStream stream ( data, IO_ReadOnly );
@@ -554,5 +563,4 @@ void ServerApplication::togglePower()
#ifdef QWS
-
if ( Opie::Security::MultiauthPassword::needToAuthenticate ( true ) && qt_screen ) {
// Should use a big black window instead.
@@ -628,5 +636,6 @@ bool ServerApplication::qwsEventFilter( QWSEvent *e )
screenClick(FALSE);
}
- }else if ( e->type == QWSEvent::Key ) {
+ } else
+ if ( e->type == QWSEvent::Key ) {
QWSKeyEvent * ke = static_cast<QWSKeyEvent*>( e );
if ( kf->checkButtonAction( false,
@@ -651,5 +660,6 @@ void ServerApplication::showSafeMode()
"Plugins are not loaded in Safe Mode. "
"You can use the Plugin Manager to "
- "disable plugins that cause system error."), tr("OK"), tr("Plugin Manager..."), 0) == 1 ) {
+ "disable plugins that cause system error."), tr("OK"), tr("Plugin Manager..."), 0) == 1 )
+ {
Global::execute( "pluginmanager" );
}