• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmobiletools

atengineconfig_addons.h

Go to the documentation of this file.
00001 /***************************************************************************
00002    Copyright (C) 2007
00003    by Marco Gulino <marco@kmobiletools.org>
00004 
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010 
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 
00018    You should have received a copy of the GNU General Public License
00019    along with this program; if not, write to the
00020    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021    Boston, MA 02110-1301, USA.
00022  ***************************************************************************/
00023 
00024 #ifndef ATENGINECONFIG_ADDONS_H
00025 #define ATENGINECONFIG_ADDONS_H
00026 
00027 public:
00028     enum Connection { ConnectionUSB=0x1, ConnectionSerial=0x2, ConnectionBluetooth=0x4, ConnectionIrDA=0x8, ConnectionUser=0x10 };
00029 
00030     int at_connections() {
00031         int r=0;
00032         if( at_connUSB() ) r|=ATDevicesConfig::ConnectionUSB;
00033         if( at_connIrdA() ) r|=ATDevicesConfig::ConnectionIrDA;
00034         if( at_connSerial() ) r|=ATDevicesConfig::ConnectionSerial;
00035         if( at_connBluetooth() ) r|=ATDevicesConfig::ConnectionBluetooth;
00036         if( at_connCustom() ) r|=ATDevicesConfig::ConnectionUser;
00037         return r;
00038     }
00039     void setAt_connections(int c) {
00040         setAt_connUSB(c & ATDevicesConfig::ConnectionUSB);
00041         setAt_connIrdA(c & ATDevicesConfig::ConnectionIrDA);
00042         setAt_connSerial(c & ATDevicesConfig::ConnectionSerial);
00043         setAt_connBluetooth(c & ATDevicesConfig::ConnectionBluetooth);
00044         setAt_connCustom(c & ATDevicesConfig::ConnectionUser);
00045     }
00046 
00047 #endif
00048 

kmobiletools

Skip menu "kmobiletools"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal