• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Solid

Solid::Processor

Solid::Processor Class Reference

#include <processor.h>

Inheritance diagram for Solid::Processor:

Inheritance graph
[legend]

List of all members.


Detailed Description

This device interface is available on processors.

Definition at line 35 of file processor.h.


Public Types

enum  InstructionSet {
  NoExtensions = 0x0, IntelMmx = 0x1, IntelSse = 0x2, IntelSse2 = 0x4,
  IntelSse3 = 0x8, IntelSse4 = 0x10, Amd3DNow = 0x20, AltiVec = 0x40
}

Public Member Functions

virtual ~Processor ()
int number () const
int maxSpeed () const
bool canChangeFrequency () const
InstructionSets instructionSets () const

Static Public Member Functions

static Type deviceInterfaceType ()

Properties

int number
qulonglong maxSpeed
bool canChangeFrequency
InstructionSets instructionSets

Friends

class Device

Member Enumeration Documentation

enum Solid::Processor::InstructionSet

This enum contains the list of architecture extensions you can query.

Enumerator:
NoExtensions 
IntelMmx 
IntelSse 
IntelSse2 
IntelSse3 
IntelSse4 
Amd3DNow 
AltiVec 

Definition at line 63 of file processor.h.


Constructor & Destructor Documentation

Solid::Processor::~Processor (  )  [virtual]

Destroys a Processor object.

Definition at line 32 of file processor.cpp.


Member Function Documentation

static Type Solid::Processor::deviceInterfaceType (  )  [inline, static]

Get the Solid::DeviceInterface::Type of the Processor device interface.

Returns:
the Processor device interface type
See also:
Solid::Ifaces::Enums::DeviceInterface::Type

Definition at line 91 of file processor.h.

int Solid::Processor::number (  )  const

Retrieves the processor number in the system.

Returns:
the internal processor number in the system, starting from zero

int Solid::Processor::maxSpeed (  )  const

Retrieves the maximum speed of the processor.

Returns:
the maximum speed in MHz

bool Solid::Processor::canChangeFrequency (  )  const

Indicates if the processor can change the CPU frequency.

True if a processor is able to change it's own CPU frequency. (generally for power management).

Returns:
true if the processor can change CPU frequency, false otherwise

InstructionSets Solid::Processor::instructionSets (  )  const

Queries the instructions set extensions of the CPU.

Returns:
the extensions supported by the CPU


Friends And Related Function Documentation

friend class Device [friend]

Reimplemented from Solid::DeviceInterface.

Definition at line 45 of file processor.h.


Property Documentation

int Solid::Processor::number [read]

Definition at line 40 of file processor.h.

int Solid::Processor::maxSpeed [read]

Definition at line 41 of file processor.h.

bool Solid::Processor::canChangeFrequency [read]

Definition at line 42 of file processor.h.

Solid::Processor::InstructionSets Solid::Processor::instructionSets [read]

Definition at line 43 of file processor.h.


The documentation for this class was generated from the following files:
  • processor.h
  • processor.cpp

Solid

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs 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