From df3e4c8b13c16aeb96e70dbaa2d409f83eed988e Mon Sep 17 00:00:00 2001 From: zecke Date: Wed, 25 Aug 2004 21:51:13 +0000 Subject: -Have a common implementation for reading the config value and setting the Mixer. The mixer, sound and path is configurable -Restore the Opie HEADER (who is guilty? probably me) -Fix warnings -Port Zaurus,Simpad,Ipaq to configure the mixer --- (limited to 'libopie2/opiecore/device/odevice.h') diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index cb7a83f..f4b3e0e 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h @@ -1,27 +1,27 @@ /* - This file is part of the Opie Project - Copyright (C) The Opie Team +                 This file is part of the Opie Project +              Copyright (C) The Opie Team =. .=l. - .>+-= -_;:, .> :=|. This program is free software; you can -.> <`_, > . <= redistribute it and/or modify it under -:`=1 )Y*s>-.-- : the terms of the GNU Library General Public -.="- .-=="i, .._ License as published by the Free Software -- . .-<_> .<> Foundation; either version 2 of the License, - ._= =} : or (at your option) any later version. - .%`+i> _;_. - .i_,=:_. -`: PARTICULAR PURPOSE. See the GNU -..}^=.= = ; Library General Public License for more -++= -. .` .: details. -: = ...= . :.=- --. .:....=;==+<; You should have received a copy of the GNU - -_. . . )=. = Library General Public License along with - -- :-=` this library; see the file COPYING.LIB. +           .>+-= + _;:,     .>    :=|. This program is free software; you can +.> <`_,   >  .   <= redistribute it and/or modify it under +:`=1 )Y*s>-.--   : the terms of the GNU Library General Public +.="- .-=="i,     .._ License as published by the Free Software + - .   .-<_>     .<> Foundation; either version 2 of the License, +     ._= =}       : or (at your option) any later version. +    .%`+i>       _;_. +    .i_,=:_.      -`: PARTICULAR PURPOSE. See the GNU +..}^=.=       =       ; Library General Public License for more +++=   -.     .`     .: details. + :     =  ...= . :.=- + -.   .:....=;==+<; You should have received a copy of the GNU +  -_. . .   )=.  = Library General Public License along with +    --        :-=` this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -38,13 +38,18 @@ _;:, .> :=|. This program is free software; you can #include #include #include + + #include #include + +class Sound; + namespace Opie{ namespace Core{ - class ODeviceData; +class ODeviceData; /** * The available devices */ @@ -319,11 +324,14 @@ signals: private slots: void systemMessage ( const QCString &, const QByteArray & ); + void playingStopped(); protected: void addPreHandler(QWSServer::KeyboardFilter*aFilter); void remPreHandler(QWSServer::KeyboardFilter*aFilter); void reloadButtonMapping(); + void changeMixerForAlarm( int mixer, const char* file, Sound *snd); + /* ugly virtual hook */ virtual void virtual_hook( int id, void* data ); }; @@ -348,6 +356,9 @@ class ODeviceData { QValueList *m_buttons; uint m_holdtime; QStrList *m_cpu_frequencies; + + /* values for changeMixerForAlarm */ + int m_sound, m_vol, m_mixer; }; extern bool isQWS(); -- cgit v0.9.0.2