Index

dkCallback

Purpose:

dkCallback is the class that is used to represent a callback object.

Class summary:

class dkCallback
 {
   public:
    virtual ~dkCallback();
    virtual void setThreshold(long nValue);
    virtual long getThreshold();
    virtual void cancelQuery();
    virtual DKBoolean dataCallback(dkCollection* ddoList, DKBoolean isDone);
   protected:
    dkCallback();
 }

Members:

Constructors and destructor
dkCallback();
virtual ~dkCallback();

Member functions

setThreshold
Sets the number of returned results for each data callback. This method should be set by the application before calling the execute function in the datastore.
virtual void setThreshold(long nValue);

getThreshold
Gets the number of returned hits that the server returns for each callback. The datastore will call this method for each query.
virtual long getThreshold();

cancelQuery
Indicates that the user has canceled the query. It should be called by the application to cancel the query execution on the server.
virtual void cancelQuery();

dataCallback
Returns Hits from the specific datastore.
virtual DKBoolean dataCallback(dkCollection* ddoList, DKBoolean isDone);

reportexception
Reports an exception from the specific datastore. virtual void reportException(DKException* exc);

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.