Classified ads
|
Pure-virtual interface class for controller. This is spammed across parties needing access to application controller. Reason for this interface is that for testing purposes we can replace real controller with a dummy mock-up. More...
#include <mcontroller.h>
Public Slots | |
virtual void | exitApp ()=0 |
virtual void | displayAboutBox ()=0 |
virtual void | displayFront ()=0 |
virtual void | handleError (MController::CAErrorSituation aError, const QString &aExplanation)=0 |
virtual Node & | getNode () const =0 |
virtual NetworkListener * | networkListener () const =0 |
virtual Model & | model () const =0 |
virtual void | storePrivateDataOfSelectedProfile (bool aPublishTrustListToo=false)=0 |
virtual void | reStorePrivateDataOfSelectedProfile ()=0 |
virtual bool | isContactInContactList (const Hash &aFingerPrint) const =0 |
virtual QString | displayableNameForProfile (const Hash &aProfileFingerPrint) const =0 |
virtual void | offerDisplayNameForProfile (const Hash &aProfileFingerPrint, const QString &aDisplayName, const bool iUpdatePersistenStorage=false)=0 |
virtual void | displayFileInfoOnUi (const BinaryFile &aFileMetadata)=0 |
virtual VoiceCallEngine * | voiceCallEngine ()=0 |
virtual MVoiceCallEngine * | voiceCallEngineInterface ()=0 |
virtual TclWrapper & | tclWrapper ()=0 |
virtual QWidget * | frontWidget ()=0 |
virtual QString | getFileName (bool &aSuccess, bool aIsSaveFile=false, QString aSuggestedFileName=QString())=0 |
Public Member Functions | |
virtual void | startRetrievingContent (NetworkRequestExecutor::NetworkRequestQueueItem aReq, bool aIsBackgroundDl, ProtocolItemType aTypeOfExpectedObject)=0 |
virtual void | startRetrievingContent (CaDbRecord::SearchTerms aSearchTerms)=0 |
virtual void | userInterfaceAction (CAUserInterfaceRequest aRequest, const Hash &aHashConcerned=KNullHash, const Hash &aFetchFromNode=KNullHash, const QString *aAdditionalInformation=NULL)=0 |
virtual void | hideUI ()=0 |
virtual void | showUI ()=0 |
virtual void | setProfileInUse (const Hash &aProfileHash)=0 |
virtual const Hash & | profileInUse ()=0 |
virtual void | setContentKeyPasswd (QString aPasswd)=0 |
virtual QString | contentKeyPasswd () const =0 |
Pure-virtual interface class for controller. This is spammed across parties needing access to application controller. Reason for this interface is that for testing purposes we can replace real controller with a dummy mock-up.
Enumeration for different errors that may occur within this app. Class controller is supposed to handle these and may be signaled an error
Enumeration for different user-interface actions that controller tries to route
|
pure virtual |
method for getting passwd of private content keys previously set, see method Controller::setContentKeyPasswd
Implemented in Controller.
|
pure virtualslot |
|
pure virtualslot |
bragging
|
pure virtualslot |
method that puts dialog or similar on display, about a published file
|
pure virtualslot |
this initializes the "normal" display
|
pure virtualslot |
quitting
|
pure virtualslot |
Method for getting front-widget, to be used as parent of dialogs spawned from non-ui threads
|
pure virtualslot |
Method for getting file name. Method displays file selection dialog and returns the selected file. Idea of this method is that it may be called from background threads and it will display the dialog in UI thread, then report results back. This is a blocking method that will suspend execution of the calling thread for the duration while user is doing the selection.
aSuccess | is set to true if operation ends all right. |
aIsSaveFile | if set to true, "file save" dialog is shown, otherwise "file open" dialog. |
aSuggestedFileName | file name (pattern). If given empty, any file is suggested in dialog, if "*.jpg" is given, then dialog shall suggest only files with .jpg ending and if "foobar.txt" is given, then dialog will suggest literal file name "foobar.txt". |
|
pure virtualslot |
Method for node ; this may be changed during startup-phase but not after that
Implemented in Controller.
|
pure virtualslot |
Method for handling errors inside application.
aError | Reason for error call, from error enum above |
aExplanation | NULL or human-readable description about what went wrong. |
|
pure virtual |
Implemented in Controller.
|
pure virtualslot |
method for checking if contact is in contact list
|
pure virtualslot |
method for getting datamodel
Implemented in Controller.
|
pure virtualslot |
method for network listener ; it is parent of all connections, also the outgoing
Implemented in Controller.
|
pure virtualslot |
|
pure virtual |
method getting user profile in use.
Implemented in Controller.
|
pure virtualslot |
method for restoring private data of profile currently in use. shall be called after new profile is selected in frontwidget.
|
pure virtual |
method for setting passwd used to open private content encryption rsa key. this password is stored in controller and is then used by content-open/sign-operations when crypto lib asks for password.
Implemented in Controller.
|
pure virtual |
method selecting user profile in use.
Implemented in Controller.
|
pure virtual |
method for showing UI
Implemented in Controller.
|
pure virtual |
Method that starts actions regarding content fetch from network
aReq | specifies the content,at least iRequestType and iRequestedItem need to be there |
aIsBackgroundDl | is true if the retrieval may be queued into background as a low-priority item |
aTypeOfExpectedObject | What kind of object is expected, possible values include ClassifiedAd, BinaryBlob and UserProfile from ProtocolItemType. |
Implemented in Controller.
|
pure virtual |
Variant of "start fetch" method that starts fetch of db records.
aSearchTerms | Database query that fetched record should satisfy |
Implemented in Controller.
|
pure virtualslot |
method for storing private data of profile currently in use
aPublishTrustListToo | if set to true, has selected profiles trust list to be updated profile data and profile published with the new trust list. |
|
pure virtualslot |
Method for getting tcl wrapper instance. If there is no instance one will be created
|
pure virtual |
Method for requesting different things to take place in UI. controller mostly routes these to FrontWidget but other actions may be in order too..
aRequest | users orders |
aHashConcerned | possible hash parameter ; can be null hash if action is not about specific hash |
aFetchFromNode | possible node hash parameter ; if concerning item is not found from local storage, try to fetch it from given node ; is KNullHash, then just do fetch using normal algorithm. |
aAdditionalInformation | possible explanation or other info |
Implemented in Controller.
|
pure virtualslot |
Method for getting voice call engine. If there is no engine prior to call, one will be constructed
|
pure virtualslot |
Method for getting voice call engine interface. If there is no engine prior to call, one will be constructed. The instance is the same that is returned via voiceCallEngine method.