• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

tdegenericdevice.h

00001 /* This file is part of the TDE libraries
00002    Copyright (C) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net>
00003              (C) 2013 Golubev Alexander <fatzer2@gmail.com>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef _TDEGENERICDEVICE_H
00021 #define _TDEGENERICDEVICE_H
00022 
00023 #include <tqobject.h>
00024 #include <tqstring.h>
00025 
00026 #include "tdelibs_export.h" 
00027 #include "kicontheme.h" 
00028 
00029 #include "tdehwcommontypes.h" 
00030 
00031 class TDECORE_EXPORT TDEGenericDevice : public TQObject
00032 {
00033     Q_OBJECT
00034 
00035     public:
00040         TDEGenericDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn=TQString::null);
00041         
00045         ~TDEGenericDevice();
00046 
00050         TDEGenericDeviceType::TDEGenericDeviceType type();
00051 
00055         TQString name();
00056 
00060         TQString vendorName();
00061 
00065         TQString vendorModel();
00066 
00070         TQString serialNumber();
00071 
00078         virtual TQString friendlyName();
00079 
00086         virtual TQString detailedFriendlyName();
00087 
00091         TQString deviceBus();
00092 
00098         TQString systemPath();
00099 
00105         TQString deviceNode();
00106 
00110         bool blacklistedForUpdate();
00111 
00115         TQString uniqueID();
00116 
00120         TQString vendorID();
00121 
00125         TQString modelID();
00126 
00130         TQString vendorEncoded();
00131 
00135         TQString modelEncoded();
00136 
00140         TQString subVendorID();
00141 
00145         TQString subModelID();
00146 
00150         TQString PCIClass();
00151 
00155         TQString moduleAlias();
00156 
00160         TQString deviceDriver();
00161 
00165         TQString subsystem();
00166 
00170         TDEGenericDevice* parentDevice();
00171 
00175         virtual TQString friendlyDeviceType();
00176 
00180         TQString busID();
00181 
00187         virtual TQPixmap icon(TDEIcon::StdSizes size);
00188 
00189     protected:
00194         void internalSetName(TQString dn);
00195 
00200         void internalSetVendorName(TQString vn);
00201 
00206         void internalSetVendorModel(TQString vm);
00207 
00212         void internalSetSerialNumber(TQString sn);
00213 
00218         void internalSetDeviceBus(TQString db);
00219 
00226         void internalSetSystemPath(TQString sp);
00227 
00234         void internalSetDeviceNode(TQString sn);
00235 
00240         void internalSetBlacklistedForUpdate(bool bl);
00241 
00246         void internalSetVendorID(TQString id);
00247 
00252         void internalSetModelID(TQString id);
00253 
00258         void internalSetVendorEncoded(TQString id);
00259 
00264         void internalSetModelEncoded(TQString id);
00265 
00270         void internalSetSubVendorID(TQString id);
00271 
00276         void internalSetSubModelID(TQString id);
00277 
00282         void internalSetPCIClass(TQString cl);
00283 
00288         void internalSetModuleAlias(TQString ma);
00289 
00294         void internalSetDeviceDriver(TQString dr);
00295 
00300         void internalSetSubsystem(TQString ss);
00301 
00306         void internalSetParentDevice(TDEGenericDevice* pd);
00307 
00308     private:
00309         TDEGenericDeviceType::TDEGenericDeviceType m_deviceType;
00310         TQString m_deviceName;
00311         TQString m_systemPath;
00312         TQString m_deviceNode;
00313         TQString m_vendorName;
00314         TQString m_vendorModel;
00315         TQString m_serialNumber;
00316         TQString m_deviceBus;
00317         TQString m_uniqueID;
00318         TQString m_vendorID;
00319         TQString m_modelID;
00320         TQString m_vendorenc;
00321         TQString m_modelenc;
00322         TQString m_subvendorID;
00323         TQString m_submodelID;
00324         TQString m_pciClass;
00325         TQString m_modAlias;
00326         TQString m_deviceDriver;
00327         TQString m_subsystem;
00328         TQString m_friendlyName;
00329         bool m_blacklistedForUpdate;
00330         TDEGenericDevice* m_parentDevice;
00331 
00332         // Internal use only!
00333         TQStringList m_externalSubtype;
00334         TQString m_externalRulesFile;
00335         TQString m_udevtype;
00336         TQString m_udevdevicetypestring;
00337         TQString udevdevicetypestring_alt;
00338 
00339     friend class TDEHardwareDevices;
00340 };
00341 
00342 #endif // _TDEGENERICDEVICE_H

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.6.3
This website is maintained by Timothy Pearson.