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

tdecore

  • tdecore
  • tdehw
tdegenericdevice.h
1/* This file is part of the TDE libraries
2 Copyright (C) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net>
3 (C) 2013 Golubev Alexander <fatzer2@gmail.com>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _TDEGENERICDEVICE_H
21#define _TDEGENERICDEVICE_H
22
23#include <tqobject.h>
24#include <tqstring.h>
25
26#include "tdelibs_export.h"
27#include "kicontheme.h"
28
29#include "tdehwcommontypes.h"
30
31class TDECORE_EXPORT TDEGenericDevice : public TQObject
32{
33 TQ_OBJECT
34
35 public:
40 TDEGenericDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn=TQString::null);
41
45 ~TDEGenericDevice();
46
50 TDEGenericDeviceType::TDEGenericDeviceType type();
51
55 TQString name();
56
60 TQString vendorName();
61
65 TQString vendorModel();
66
70 TQString serialNumber();
71
78 virtual TQString friendlyName();
79
86 virtual TQString detailedFriendlyName();
87
91 TQString deviceBus();
92
98 TQString systemPath();
99
105 TQString deviceNode();
106
110 bool blacklistedForUpdate();
111
115 TQString uniqueID();
116
120 TQString vendorID();
121
125 TQString modelID();
126
130 TQString vendorEncoded();
131
135 TQString modelEncoded();
136
140 TQString subVendorID();
141
145 TQString subModelID();
146
150 TQString PCIClass();
151
155 TQString moduleAlias();
156
160 TQString deviceDriver();
161
165 TQString subsystem();
166
170 TDEGenericDevice* parentDevice();
171
175 virtual TQString friendlyDeviceType();
176
180 TQString busID();
181
187 virtual TQPixmap icon(TDEIcon::StdSizes size);
188
189 protected:
194 void internalSetName(TQString dn);
195
200 void internalSetVendorName(TQString vn);
201
206 void internalSetVendorModel(TQString vm);
207
212 void internalSetSerialNumber(TQString sn);
213
218 void internalSetDeviceBus(TQString db);
219
226 void internalSetSystemPath(TQString sp);
227
234 void internalSetDeviceNode(TQString dn);
235
240 void internalSetBlacklistedForUpdate(bool bl);
241
246 void internalSetVendorID(TQString id);
247
252 void internalSetModelID(TQString id);
253
258 void internalSetVendorEncoded(TQString id);
259
264 void internalSetModelEncoded(TQString id);
265
270 void internalSetSubVendorID(TQString id);
271
276 void internalSetSubModelID(TQString id);
277
282 void internalSetPCIClass(TQString cl);
283
288 void internalSetModuleAlias(TQString ma);
289
294 void internalSetDeviceDriver(TQString dr);
295
300 void internalSetSubsystem(TQString ss);
301
306 void internalSetParentDevice(TDEGenericDevice* pd);
307
308 private:
309 TDEGenericDeviceType::TDEGenericDeviceType m_deviceType;
310 TQString m_deviceName;
311 TQString m_systemPath;
312 TQString m_deviceNode;
313 TQString m_vendorName;
314 TQString m_vendorModel;
315 TQString m_serialNumber;
316 TQString m_deviceBus;
317 TQString m_uniqueID;
318 TQString m_vendorID;
319 TQString m_modelID;
320 TQString m_vendorenc;
321 TQString m_modelenc;
322 TQString m_subvendorID;
323 TQString m_submodelID;
324 TQString m_pciClass;
325 TQString m_modAlias;
326 TQString m_deviceDriver;
327 TQString m_subsystem;
328 TQString m_friendlyName;
329 bool m_blacklistedForUpdate;
330 TDEGenericDevice* m_parentDevice;
331
332 // Internal use only!
333 TQStringList m_externalSubtype;
334 TQString m_externalRulesFile;
335 TQString m_udevtype;
336 TQString m_udevdevicetypestring;
337 TQString udevdevicetypestring_alt;
338
339 friend class TDEHardwareDevices;
340};
341
342#endif // _TDEGENERICDEVICE_H
TDEIcon::StdSizes
StdSizes
These are the standard sizes for icons.
Definition: kicontheme.h:112
KStdAction::name
const char * name(StdAction id)

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.9.4
This website is maintained by Timothy Pearson.