Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

supportpriv.h

Go to the documentation of this file.
00001 /*
00002   LinEAK - Linux support for Easy Access and Internet Keyboards      
00003   Copyright (C) 2001,2002 Mark Smulders <Mark@PIRnet.nl>
00004   
00005   lineakconfig, GTK+ interface for configuring lineakd
00006 
00007   This program is free software; you can redistribute it and/or modify  
00008   it under the terms of the GNU General Public License as published by  
00009   the Free Software Foundation; either version 2, or (at your option)   
00010   any later version.                                                    
00011                                                                         
00012   This program is distributed in the hope that it will be useful,       
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of        
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         
00015   GNU General Public License for more details.                          
00016                                                                         
00017   You should have received a copy of the GNU General Public License     
00018   along with this program; if not, write to the                         
00019   Free Software Foundation, Inc., 59 Temple Place - Suite 330,          
00020   Boston, MA 02111-1307, USA.                                           
00021 */
00022 
00023 /**********************************************************************************************/
00024 #ifndef SUPPORTPRIV_H
00025 #define SUPPORTPRIV_H
00026 
00027 #include "defines.h"
00028 
00029 /* special actions in .conf file */
00030 #define NR_SPECIALS 5
00031 /* link them to strings */
00032 #define EAK_EJECT "EAK_EJECT"
00033 #define EAK_VOLUP "EAK_VOLUP"
00034 #define EAK_VOLDOWN "EAK_VOLDOWN"
00035 #define EAK_MUTE "EAK_MUTE"
00036 #define EAK_SLEEP "EAK_SLEEP"
00037 /* provides indexes etc of the actions for the gui ( 0 - (n-1) ) */
00038 typedef struct {
00039   gchar *action;
00040   gchar *longname;
00041 } specialact;
00042 static specialact specialacts[NR_SPECIALS] = {
00043   {EAK_EJECT, "Eject CD-ROM"},
00044   {EAK_VOLUP, "Increase volume"},
00045   {EAK_VOLDOWN, "Decrease volume"},
00046   {EAK_MUTE, "Mute volume"},
00047   {EAK_SLEEP, "Sleep"}
00048 };
00049 
00050 //gboolean ApplyUsed;
00051 
00052 #define CONF_HEADER \
00053 "# LinEAK - Linux support for Easy Access and Internet Keyboards\n" \
00054 "#  Copyright (c) 2001,2002 Mark Smulders <Mark@PIRnet.nl>\n" \
00055 "#  http://lineak.sourceforge.net\n" \
00056 "#\n" \
00057 "# lineakd configuration file\n" \
00058 "#\n" \
00059 "# example key configuration:\n" \
00060 "# \tplay\t= \"xmms --play-pause\"\n" \
00061 "# \teject\t= EAK_EJECT\n" \
00062 "#\n" \
00063 "# available special actions:\n" \
00064 "# \tEAK_EJECT\n" \
00065 "# \tEAK_VOLUP\n" \
00066 "# \tEAK_VOLDOWN\n" \
00067 "# \tEAK_MUTE\n" \
00068 "# \tEAK_SLEEP\n" \
00069 "#\n" \
00070 "\n"
00071 
00072 #endif

Generated on Thu May 16 23:43:08 2002 for KLineakConfig by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002