C# 클래스 Plasma.DataContainer

상속: Qyoto.QObject, IDisposable
파일 보기 프로젝트 열기: 0xd34df00d/Qross

공개 메소드들

메소드 설명
ConnectVisualization ( QObject visualization, uint pollingInterval, Plasma alignment ) : void Connects an object to this DataContainer. May be called repeatedly for the same visualization without side effects name="visualization" the object to connect to this DataContainer name="pollingInterval" the time in milliseconds between updates name="alignment" the clock position to align updates to
Data ( ) : QVariant>.Dictionary Returns the data for this DataContainer
DataContainer ( ) : System
DataContainer ( QObject parent ) : System Constructs a default DataContainer that has no name or data associated with it
Dispose ( ) : void
RemoveAllData ( ) : void Removes all data currently associated with this source If you call removeAllData() on a DataContainer, you need to either trigger the scheduleSourcesUpdated() slot for the data engine it belongs to or call checkForUpdate() on the DataContainer.
SetData ( string key, Qyoto.QVariant value ) : void Set a value for a key. This also marks this source as needing to signal an update. If you call setData() directly on a DataContainer, you need to either trigger the scheduleSourcesUpdated() slot for the data engine it belongs to or call checkForUpdate() on the DataContainer. name="key" a string used as the key for the data name="value" a QVariant holding the actual data. If a null or invalid QVariant is passed in and the key currently exists in the data, then the data entry is removed
VisualizationIsConnected ( QObject visualization ) : bool

보호된 메소드들

메소드 설명
CheckForUpdate ( ) : void Checks whether any data has changed and, if so, emits dataUpdated().
CreateProxy ( ) : void
DataContainer ( Type dummy ) : System
SetNeedsUpdate ( ) : void
SetNeedsUpdate ( bool update ) : void Indicates that the data should be treated as dirty the next time hasUpdates() is called. This is needed for the case where updateRequested() is triggered but we don't want to update the data immediately because it has just been updated. The second request won't be fulfilled in this case, because we never updated the data and so never called checkForUpdate(). So we claim it needs an update anyway.
TimeSinceLastUpdate ( ) : uint Returns how long ago, in msecs, that the data in this container was last updated. This is used by DataEngine to compress updates that happen more quickly than the minimum polling interval by calling setNeedsUpdate() instead of calling updateSourceEvent() immediately.

비공개 메소드들

메소드 설명
CheckUsage ( ) : void
DisconnectVisualization ( QObject visualization ) : void
ForceImmediateUpdate ( ) : void

메소드 상세

CheckForUpdate() 보호된 메소드

Checks whether any data has changed and, if so, emits dataUpdated().
protected CheckForUpdate ( ) : void
리턴 void

ConnectVisualization() 공개 메소드

Connects an object to this DataContainer. May be called repeatedly for the same visualization without side effects name="visualization" the object to connect to this DataContainer name="pollingInterval" the time in milliseconds between updates name="alignment" the clock position to align updates to
public ConnectVisualization ( QObject visualization, uint pollingInterval, Plasma alignment ) : void
visualization Qyoto.QObject
pollingInterval uint
alignment Plasma
리턴 void

CreateProxy() 보호된 메소드

protected CreateProxy ( ) : void
리턴 void

Data() 공개 메소드

Returns the data for this DataContainer
public Data ( ) : QVariant>.Dictionary
리턴 QVariant>.Dictionary

DataContainer() 공개 메소드

public DataContainer ( ) : System
리턴 System

DataContainer() 공개 메소드

Constructs a default DataContainer that has no name or data associated with it
public DataContainer ( QObject parent ) : System
parent Qyoto.QObject
리턴 System

DataContainer() 보호된 메소드

protected DataContainer ( Type dummy ) : System
dummy System.Type
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

RemoveAllData() 공개 메소드

Removes all data currently associated with this source If you call removeAllData() on a DataContainer, you need to either trigger the scheduleSourcesUpdated() slot for the data engine it belongs to or call checkForUpdate() on the DataContainer.
public RemoveAllData ( ) : void
리턴 void

SetData() 공개 메소드

Set a value for a key. This also marks this source as needing to signal an update. If you call setData() directly on a DataContainer, you need to either trigger the scheduleSourcesUpdated() slot for the data engine it belongs to or call checkForUpdate() on the DataContainer. name="key" a string used as the key for the data name="value" a QVariant holding the actual data. If a null or invalid QVariant is passed in and the key currently exists in the data, then the data entry is removed
public SetData ( string key, Qyoto.QVariant value ) : void
key string
value Qyoto.QVariant
리턴 void

SetNeedsUpdate() 보호된 메소드

protected SetNeedsUpdate ( ) : void
리턴 void

SetNeedsUpdate() 보호된 메소드

Indicates that the data should be treated as dirty the next time hasUpdates() is called. This is needed for the case where updateRequested() is triggered but we don't want to update the data immediately because it has just been updated. The second request won't be fulfilled in this case, because we never updated the data and so never called checkForUpdate(). So we claim it needs an update anyway.
protected SetNeedsUpdate ( bool update ) : void
update bool
리턴 void

TimeSinceLastUpdate() 보호된 메소드

Returns how long ago, in msecs, that the data in this container was last updated. This is used by DataEngine to compress updates that happen more quickly than the minimum polling interval by calling setNeedsUpdate() instead of calling updateSourceEvent() immediately.
protected TimeSinceLastUpdate ( ) : uint
리턴 uint

VisualizationIsConnected() 공개 메소드

public VisualizationIsConnected ( QObject visualization ) : bool
visualization Qyoto.QObject
리턴 bool