Corresponds to a single rule row like 'Rating >= 4 stars' in dlgSearch

QueryCondition

Hierarchy (view full)

Constructors

Properties

asJSON: string

Gets the object as serialized JSON string. Or sets serialized JSON (to fill this object's metadata by the metadata included within the JSON)

bypass: boolean

Undocumented

deleted: boolean

Set to true after deletion so that 'change' event is called and item is removed from UI lists.

dontNotify: boolean

Undocumented

fieldName: string

Gets/Sets field to be searched (e.g. 'Album', 'Rating', 'Played #')

id: number

Gets integer id of the object

isObservable: boolean

Whether this object can be listened (e.g. for 'change' event)

isOperator: boolean

Undocumented

isStatusBarSource: boolean

Is source for status bar informations.

nestLevel: number

Undocumented

nestOperator: string

Undocumented

objectType: string

Gets the object type as string

operatorName: string

Gets/Sets operator to be used (e.g. '>=', 'equals', 'is known') Use getOperatorsList() to get list of available operators for the currently selected FieldName

persistentID: string

Gets persistent id of the object

statusInfo: Promise<any>

Undocumented

title: string

Gets the object title

valueText: string

Undocumented

Methods

  • Lock object to update state. Events are not called when in update state.

    Returns void

  • Updates the object every X ms when called periodically. Useful e.g. when filling lists. Can be used only in the update lock! (i.e. between beginUpdate/endUpdate)

    Parameters

    • interval: number

    Returns void

  • Parameters

    Returns Promise<any>

    Undocumented

  • Unlock object from update state. beginUpdate and endUpdate must be in pair. When endUpdate is called, change event is called.

    Returns boolean

  • Gets class name of the object.

    Returns string

  • Gets view type for selected Operatorname

    Returns string

  • Gets/Sets list of available operators for the currently selected FieldName

    Returns StringList

  • Gets text represantion of set values (e.g. 'Played # >= 5', 'Rating equals 4 stars') It is read only property, to set the values use setValuesAsync method

    Returns Promise<any>

  • Gets currently selected values

    Returns Promise<any>

  • Gets all possible values if the selected operator is 'equals'

    Returns StringList

  • Parameters

    • id: number

    Returns boolean

    Undocumented

  • Call defined method with locked data so user can access them.

    Parameters

    • func: (() => any)

      Method to call

        • (): any
        • Returns any

    Returns void

  • Call defined method with the item locked for modifications.

    Parameters

    • Rest ...params: any[]

    Returns Promise<any>

  • Notifies that the object was changed (e.g. to force visual update etc.)

    Parameters

    • Rest ...params: any[]

    Returns void

  • Parameters

    • aValue: string

    Returns void

    Undocumented

  • Parameters

    • id: number
    • value: boolean

    Returns void

    Undocumented

  • Sets values to be used

    Parameters

    • Value1: string

      value to be set, varies based on selected OperatorName

    • Value2: string

      this value is used only as the higher value in case of 'between' operator

    Returns Promise<any>

Events

event_change: ((changeType, ...additionalArgs) => void)

Event is called when object is somehow changed

See App.listen

Type declaration

    • (changeType, ...additionalArgs): void
    • Parameters

      • changeType: string

        additional change type (can have values like 'tracklist', 'deleted', 'title' or undefined)

      • Rest ...additionalArgs: any[]

      Returns void

Example

app.listen(object, 'change', (changeType) => {  });
event_destroying: (() => void)

Event is called when object is going to destroy

See App.listen

Type declaration

    • (): void
    • Returns void

event_statuschange: (() => void)

Event is called when status info of the object is changed

See App.listen

Type declaration

    • (): void
    • Returns void