void Plugin::hookEntryActionAreasRequested (IHookProxy_ptr proxy, QObject *action, QObject*) { if (action != AddToMetacontacts_) return; const QStringList& oldList = proxy->GetReturnValue ().toStringList (); proxy->SetReturnValue (oldList + QStringList ("contactListContextMenu")); }
void Plugin::hookEntryActionAreasRequested (IHookProxy_ptr proxy, QObject *action, QObject*) { if (!action->property ("Azoth/Depester/IsGood").toBool ()) return; QStringList ours; ours << "contactListContextMenu"; proxy->SetReturnValue (proxy->GetReturnValue ().toStringList () + ours); }
void Plugin::hookEntryActionsRequested (IHookProxy_ptr proxy, QObject *entryObj) { ICLEntry *entry = qobject_cast<ICLEntry*> (entryObj); if (!entry || entry->GetEntryType () != ICLEntry::ETChat) return; QList<QVariant> list = proxy->GetReturnValue ().toList (); list << QVariant::fromValue<QObject*> (AddToMetacontacts_); proxy->SetReturnValue (list); AddToMetacontacts_->setProperty ("Azoth/Metacontacts/Object", QVariant::fromValue<QObject*> (entryObj)); }
void Plugin::hookEntryActionAreasRequested (IHookProxy_ptr proxy, QObject *action, QObject*) { if (!action->property ("Azoth/ChatHistory/IsGood").toBool ()) return; QStringList ours; ours << "contactListContextMenu" << "tabContextMenu"; if (action->property ("ActionIcon") == "view-history") ours << "toolbar"; proxy->SetReturnValue (proxy->GetReturnValue ().toStringList () + ours); }