Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIAutoCompleteMdbResult Interface Reference

import "nsIAutoCompleteResultTypes.idl";

Inheritance diagram for nsIAutoCompleteMdbResult:
Inheritance graph
[legend]
Collaboration diagram for nsIAutoCompleteMdbResult:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void init (in nsIMdbEnv env, in nsIMdbTable table)
void setTokens (in mdb_scope valueToken, in short valueType, in mdb_scope commentToken, in short commentType)
void addRow (in nsIMdbRow row)
nsIMdbRow getRowAt (in unsigned long rowIndex)
AString getRowValue (in nsIMdbRow row, in mdb_column col)
AUTF8String getUTF8RowValue (in nsIMdbRow row, in mdb_column col)
long getIntRowValue (in nsIMdbRow row, in mdb_column col)
void setSearchString (in AString searchString)
void setErrorDescription (in AString errorDescription)
void setDefaultIndex (in long defaultIndex)
void setSearchResult (in unsigned long searchResult)
AString getValueAt (in long index)
 Get the value of the result at the given index.
AString getCommentAt (in long index)
 Get the comment of the result at the given index.
AString getStyleAt (in long index)
 Get the style hint for the result at the given index.
void removeValueAt (in long rowIndex, in boolean removeFromDb)
 Remove the value at the given index from the autocomplete results.

Public Attributes

const short kUnicharType = 0
const short kCharType = 1
const short kIntType = 2
const unsigned short RESULT_IGNORED = 1
 Possible values for the searchResult attribute.
const unsigned short RESULT_FAILURE = 2
const unsigned short RESULT_NOMATCH = 3
const unsigned short RESULT_SUCCESS = 4
readonly attribute AString searchString
 The original search string.
readonly attribute unsigned short searchResult
 The result of the search.
readonly attribute long defaultIndex
 Index of the default item that should be entered if none is selected.
readonly attribute AString errorDescription
 A string describing the cause of a search failure.
readonly attribute unsigned long matchCount
 The number of matches.

Detailed Description

Definition at line 63 of file nsIAutoCompleteResultTypes.idl.


Member Function Documentation

AString nsIAutoCompleteResult::getCommentAt ( in long  index) [inherited]

Get the comment of the result at the given index.

AString nsIAutoCompleteResult::getStyleAt ( in long  index) [inherited]

Get the style hint for the result at the given index.

AString nsIAutoCompleteResult::getValueAt ( in long  index) [inherited]

Get the value of the result at the given index.

void nsIAutoCompleteResult::removeValueAt ( in long  rowIndex,
in boolean  removeFromDb 
) [inherited]

Remove the value at the given index from the autocomplete results.

If removeFromDb is set to true, the value should be removed from persistent storage as well.

void nsIAutoCompleteBaseResult::setDefaultIndex ( in long  defaultIndex) [inherited]
void nsIAutoCompleteBaseResult::setErrorDescription ( in AString  errorDescription) [inherited]
void nsIAutoCompleteBaseResult::setSearchResult ( in unsigned long  searchResult) [inherited]
void nsIAutoCompleteBaseResult::setSearchString ( in AString  searchString) [inherited]
void nsIAutoCompleteMdbResult::setTokens ( in mdb_scope  valueToken,
in short  valueType,
in mdb_scope  commentToken,
in short  commentType 
)

Member Data Documentation

Index of the default item that should be entered if none is selected.

Definition at line 64 of file nsIAutoCompleteResult.idl.

readonly attribute AString nsIAutoCompleteResult::errorDescription [inherited]

A string describing the cause of a search failure.

Definition at line 69 of file nsIAutoCompleteResult.idl.

Definition at line 66 of file nsIAutoCompleteResultTypes.idl.

Definition at line 67 of file nsIAutoCompleteResultTypes.idl.

Definition at line 65 of file nsIAutoCompleteResultTypes.idl.

readonly attribute unsigned long nsIAutoCompleteResult::matchCount [inherited]

The number of matches.

Definition at line 74 of file nsIAutoCompleteResult.idl.

const unsigned short nsIAutoCompleteResult::RESULT_FAILURE = 2 [inherited]

Definition at line 47 of file nsIAutoCompleteResult.idl.

const unsigned short nsIAutoCompleteResult::RESULT_IGNORED = 1 [inherited]

Possible values for the searchResult attribute.

Definition at line 46 of file nsIAutoCompleteResult.idl.

const unsigned short nsIAutoCompleteResult::RESULT_NOMATCH = 3 [inherited]

Definition at line 48 of file nsIAutoCompleteResult.idl.

const unsigned short nsIAutoCompleteResult::RESULT_SUCCESS = 4 [inherited]

Definition at line 49 of file nsIAutoCompleteResult.idl.

readonly attribute unsigned short nsIAutoCompleteResult::searchResult [inherited]

The result of the search.

Definition at line 59 of file nsIAutoCompleteResult.idl.

readonly attribute AString nsIAutoCompleteResult::searchString [inherited]

The original search string.

Definition at line 54 of file nsIAutoCompleteResult.idl.


The documentation for this interface was generated from the following file: