Classified ads
|
#include <FrontWidget.h>
Public Slots | |
virtual void | publishProfileButtonClicked () |
virtual void | revertProfileButtonClicked () |
virtual void | profileImageClicked () |
virtual void | profileReadersClicked () |
virtual void | profileEdited (const QString &aNewText) |
virtual void | isPrivateSettingChanged (int aState) |
virtual void | userProfileSelected (const Hash &aProfile) |
virtual void | fileToBeSharedAdded () |
virtual void | fileToBeSharedRemoved () |
virtual void | exportSharedFile () |
virtual void | viewSharedFileInfo () |
virtual void | copySharedFileHash () |
virtual void | editNewSharedFile () |
virtual void | profileSendMsgButtonClicked () |
virtual void | profileShowReadersButtonClicked () |
virtual void | profileSendCommentButtonClicked () |
virtual void | caTabAboutComboChanged (int aNewIndex) |
virtual void | caTabConcernsComboChanged (int aNewIndex) |
virtual void | caTabWhereComboChanged (int aNewIndex) |
virtual void | replyToCaButtonClicked () |
virtual void | replyToCaToForumButtonClicked () |
virtual void | commentCaPosterProfile () |
virtual void | viewCaPosterProfile () |
virtual void | viewCaAttachments () |
virtual void | postNewClassifiedAd () |
virtual void | performAdsSearchClicked () |
virtual void | CAselectionChangedSlot (const QItemSelection &, const QItemSelection &) |
virtual void | privMsgselectionChangedSlot (const QItemSelection &, const QItemSelection &) |
virtual void | contactsSelectionChangedSlot (const QItemSelection &, const QItemSelection &) |
virtual void | replyToPrivMsgButtonClicked () |
virtual void | commentPrivMsgPosterProfile () |
virtual void | viewPrivMsgPosterProfile () |
virtual void | postNewPrivateMessage () |
virtual void | viewPrivMsgAttachments () |
virtual void | addMessageSenderToContacts () |
virtual void | addCaSenderToContacts () |
virtual void | addContactButtonClicked () |
virtual void | addContactFromContactViewButtonClicked () |
virtual void | removeContactButtonClicked () |
virtual void | viewContactProfileButtonClicked () |
virtual void | sendMsgToContactButtonClicked () |
virtual void | editContactActionSelected () |
virtual void | ownProfileCommentselectionChangedSlot (const QItemSelection &, const QItemSelection &) |
virtual void | viewedProfileCommentselectionChangedSlot (const QItemSelection &, const QItemSelection &) |
virtual void | viewedProfileCommentDoubleClicked (const QModelIndex &aSelection) |
virtual void | viewedProfileCommentKeyPressed () |
virtual void | ownProfileCommentDoubleClicked (const QModelIndex &aSelection) |
virtual void | linkActivated (const QString &aLink) |
virtual void | ownBinaryFileSelectionChangedSlot (const QModelIndex &aItem, const QModelIndex &aPreviousItem) |
virtual void | viewedBinaryFileSelectionChangedSlot (const QModelIndex &aItem, const QModelIndex &aPreviousItem) |
void | updateFileSelectionActions () |
void | nodeConnectionAttemptStatus (Connection::ConnectionState aStatus, const Hash aHashOfAttemptedNode) |
void | voiceCallButtonPressed () |
void | callStateChanged (quint32 aCallId, VoiceCallEngine::CallState aState) |
Signals | |
void | error (MController::CAErrorSituation aError, const QString &aExplanation) |
void | displayedCaChanged () |
void | displayedPrivMsgChanged () |
Public Member Functions | |
FrontWidget (Controller *aController, QMainWindow &aParent) | |
~FrontWidget () | |
void | showDetailsOfProfile (const Hash &aFingerPrint) |
void | showClassifiedAd (const CA &ca) |
void | showSingleCommentOfProfile (const Hash aCommentFingerPrint) |
void | receiveNotifyOfContentReceived (const Hash &aHashOfContent, const ProtocolItemType aTypeOfReceivdContent) |
void | receiveNotifyOfContentReceived (const Hash &aHashOfContent, const Hash &aHashOfClassificationOrDestination, const ProtocolItemType aTypeOfReceivdContent) |
QVariant | contactDataOfSelectedProfile () |
QList< Hash > | trustListOfSelectedProfile () const |
void | setContactDataOfSelectedProfile (const QVariantList &aContacts) |
bool | isContactInContactList (const Hash &aFingerPrint) const |
Profile * | selectedProfile () const |
void | openBinaryFile (const Hash &aFingerPrint, bool aUseViewedProfileNodeAsNetreqDest=false) |
Static Public Member Functions | |
static void | fillCaSelectionCombobox (QComboBox &aComboBox, bool isAboutComboBox, MController &aController) |
static QString | selectedClassification (const QComboBox &aAboutCombo, const QComboBox &aRegardingCombo, const QComboBox &aWhereCombo, const MController &aController) |
Private Member Functions | |
void | updateUiFromSelectedProfile () |
void | setUpSelectedProfileFileListingModel () |
void | setupClassifiedAdsTab () |
void | setupPrivateMessagesTab () |
void | setupContactsTab () |
void | selectClassification (QString aNameOfClassification) |
void | updateUiFromViewedProfile () |
void | activateProfileCommentDisplay (ProfileCommentListingModel *aListingModel, ProfileCommentModel &aCommentModel, const Hash &aInitialComment, const Hash &aViewedProfile) |
void | setCaDocumentSize () |
void | setPrivMsgSize () |
void | doShowFileMetadata (const Hash &aBinaryFileFingerPrint) |
void | setVoiceCallButtonStatus () |
FrontWidget::FrontWidget | ( | Controller * | aController, |
QMainWindow & | aParent | ||
) |
FrontWidget::~FrontWidget | ( | ) |
|
private |
method for bringing up dialog for display of profile comments
aListingModel | datamodel holding the comments to list (UI model) |
aCommentModel | datamodel holding the comment data (storage model) |
aInitialComment | if non-null, hash of comment to initially focus |
aViewedProfile | fingerprint of profile whose comments are shown |
|
virtualslot |
called from ca listing tab
|
virtualslot |
new contact
|
virtualslot |
new contact from "view contact" tab
|
virtualslot |
called from messages tab
|
slot |
Slot that is hit when call status changes. This is signal/slot equivalent of call status observer.
|
virtualslot |
this slot is called when classified ads header listing view has new selection
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
from priv msg tab btn
QVariant FrontWidget::contactDataOfSelectedProfile | ( | ) |
method for retrieving contacts list of the profile currently selected
|
virtualslot |
this slot is called when contacts listing view has new selection
|
virtualslot |
copies shared file SHA1 to clipboard
|
signal |
emitted when ca on display is replaced
|
signal |
emitted when privmsg on display is replaced
|
private |
|
virtualslot |
edit
|
virtualslot |
initiates edit+publish of new text document
|
signal |
|
virtualslot |
operator wants to save a shared file
|
virtualslot |
operator wants to share a file
|
virtualslot |
operator wants to stop advertasing a shared file
|
static |
Method for filling ad-category-selection -related comboboxes. This is implemented here in frontwidget but is used by dialogs as well, and that is the reason why this method is public.
bool FrontWidget::isContactInContactList | ( | const Hash & | aFingerPrint | ) | const |
method for checking if given profile is in contact list of selected profile
|
virtualslot |
callback of "is private" checkbox
|
virtualslot |
this slot is called when user clicks on link on document
|
slot |
when connection is attempted, NetworkListener will emit the status (failed or success) of the connection, emitted signal is connected here, among other places
void FrontWidget::openBinaryFile | ( | const Hash & | aFingerPrint, |
bool | aUseViewedProfileNodeAsNetreqDest = false |
||
) |
method for opening a binary file, called from url handling and from "save shared file.." selection
|
virtualslot |
called when user selects binary file from her own list of shared files
|
virtualslot |
this slot is called when user doubleclicks profile comment listing of own profile
|
virtualslot |
this slot is called when own profile comments listing is changed
|
virtualslot |
callback of "search ads"
|
virtualslot |
|
virtualslot |
from priv msg tab btn
|
virtualslot |
this slot is called when private messages header listing view has new selection
|
virtualslot |
callback for any UI actions that edit profile
|
virtualslot |
callback of image selection
|
virtualslot |
callback of reader-list edit
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
callback of publish btn
void FrontWidget::receiveNotifyOfContentReceived | ( | const Hash & | aHashOfContent, |
const ProtocolItemType | aTypeOfReceivdContent | ||
) |
kind of "observer" method called from controller when there is new content available ; odds are that we're displaying or waiting some of that
void FrontWidget::receiveNotifyOfContentReceived | ( | const Hash & | aHashOfContent, |
const Hash & | aHashOfClassificationOrDestination, | ||
const ProtocolItemType | aTypeOfReceivdContent | ||
) |
kind of "observer" method called from controller when there is new content available ; odds are that we're displaying or waiting some of that. This variant is hit with notifications about classified ads or private messages
aHashOfContent | fingerprint of the object (ca or priv msg) received |
aHashOfClassificationOrDestination | in case of ca, this is fingerprint of the classification, in case of private message, this is recipient profile fingerprint. |
|
virtualslot |
remove contact
|
virtualslot |
|
virtualslot |
|
virtualslot |
from priv msg tab btn
|
virtualslot |
callback of revert btn
|
private |
Method that set selected ad-classification on display
aNameOfClassification | is the classification, like "ToBeGivenAway.Clothing.AtYourPlace" |
|
static |
Method for getting the fully qualified name of the group selection that user has made, for reason or another. Called also from dialogs, thus public
|
inline |
method for getting currently selected profile or NULL if no profile selected
|
virtualslot |
send message to contact list profile
|
private |
void FrontWidget::setContactDataOfSelectedProfile | ( | const QVariantList & | aContacts | ) |
method for setting contacts list of the profile currently selected
|
private |
|
private |
separate init method for setting up the classified-ads tab as it is fairly complex
|
private |
contacts tab setup
|
private |
separate init method for setting up the private messages tab as it is fairly complex. This must be called after each profile re-selection
|
private |
method that sets up shared file listing model based on selected profile. if selected profile is NULL, this will tear down the model too.
|
private |
void FrontWidget::showClassifiedAd | ( | const CA & | ca | ) |
displays a selected classified ad
void FrontWidget::showDetailsOfProfile | ( | const Hash & | aFingerPrint | ) |
puts profile of any operator on display
void FrontWidget::showSingleCommentOfProfile | ( | const Hash | aCommentFingerPrint | ) |
displays a selected profile comment
QList<Hash> FrontWidget::trustListOfSelectedProfile | ( | ) | const |
method for retrieving trust list of the profile currently selected
|
slot |
sets up binary file listing actions in list of shared files for both own profile shared file listing and possible viewed profile shared file listing ; they share same actions
|
private |
method that reads iSelectedProfile and updates UI elements accordingly into "my profile" tab
|
private |
method that reads iViewedProfile and updates UI elements accordingly into "viewed profile" tab
|
virtualslot |
called from controller when another user profile is selected
|
virtualslot |
|
virtualslot |
|
virtualslot |
view contact profile
|
virtualslot |
called when user selects binary file from list of shared files from list of a viewed profile
|
virtualslot |
this slot is called when user doubleclicks profile comment listing of viewed profile
|
virtualslot |
this slot is called when user hits enter while having keyboard focus on profile comment listing
|
virtualslot |
this slot is called when viewed profile comments listing is changed
|
virtualslot |
displays list of attachments of a private message
|
virtualslot |
from priv msg tab btn
|
virtualslot |
for viewing metadata of a shared file
|
slot |
Slot that is hit when user wants to make a new voice call to operator
|
private |
context-menu action for adding shared file
|
private |
|
private |
|
private |
|
private |
used for content of ad-listing view
|
private |
Classified ad on
|
private |
this is used to display elements of an ad
|
private |
this is used to render text of classified ad
|
private |
button for opening a dialog for commenting a CA poster profile
|
private |
|
private |
|
private |
|
private |
context-menu action copying SHA1 to clipboard
|
private |
|
private |
context-menu action for editing new text doc
|
private |
context-menu action for saving to filesystem a shared file
|
private |
|
private |
button for opening dialog for posting a new CA
|
private |
|
private |
|
private |
|
private |
|
private |
this is used to display elements of an priv msg
|
private |
|
private |
|
private |
this is used to render text of priv msg
|
private |
|
private |
|
private |
context-menu action for adding shared file
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
binary file selected from "shared files" list of own profiles shared files
|
private |
components of selected "My profile"
|
private |
|
private |
model for displaying file list "operator profile" ; there may be 2nd instance for displaying file list of some other profile that is not operators own
|
private |
binary file selected from "shared files" list of viewed profiles shared files
|
private |
|
private |
button for displaying attachments of a CA on display
|
private |
button for opening view of profile from CA display
|
private |
contents of "view profile" tab
|
private |
|
private |
model for displaying file list of random viewed profile
|
private |
|
private |
|
private |
context-menu action for checking file metadata
|
private |
|
private |