kopete/libkopete
kopeteviewmanager.cpp
Go to the documentation of this file.
147 connect( Kopete::BehaviorSettings::self(), SIGNAL(configChanged()), this, SLOT(slotPrefsChanged()) );
149 connect( Kopete::ChatSessionManager::self() , SIGNAL(display(Kopete::Message&,Kopete::ChatSession*)),
187 KopeteView *KopeteViewManager::view( Kopete::ChatSession* session, const QString &requestedPlugin )
200 QString pluginName = requestedPlugin.isEmpty() ? Kopete::BehaviorSettings::self()->viewPlugin() : requestedPlugin;
214 viewPlugin = (Kopete::ViewPlugin*)pluginManager->loadPlugin( QLatin1String("kopete_chatwindow") );
309 if ( session->account()->isBusy() || ( session->account()->isAway() && !d->enableEventsWhileAway ) )
350 void KopeteViewManager::createNotification( Kopete::Message &msg, const QString &squashedMessage,
378 titleString = i18nc( "@title %1 is contact's name", "Incoming file transfer request from <i>%1</i>", Qt::escape( msgFrom ) );
381 bodyString = i18nc( "@info", "A user is trying to send you a file <filename>%1</filename>", Qt::escape( msg.fileName() ) );
385 bodyString = i18nc( "@info %2 is message", "A user is trying to send you a file <filename>%1</filename> with the message:<nl/>\"%2\"",
456 void KopeteViewManager::readMessages( Kopete::ChatSession *session, bool isOutboundMessage, bool activate )
497 else if ( event->state() == Kopete::MessageEvent::Ignored && d->balloonNotifyIgnoreClosesChatView )
561 delete v; //closeView call deleteLater, but in this case this is not enough, because some signal are called that case crash
static bool queueOnlyHighlightedMessagesInGroupChats()
Get Queue only highlighted messages in group chats.
Definition: kopetebehaviorsettings.h:288
Definition: kopetemessageevent.h:41
almost no notifications. automatically used in groupChat
Definition: kopetemessage.h:111
virtual KopeteView * createView(ChatSession *)
Creates a view to be associated with the passed in session.
Definition: kopeteviewplugin.h:49
QString fileName() const
Accessor method for the file name of incoming file transfer.
Definition: kopetemessage.cpp:678
static QString parseEmoticons(const QString &text, KEmoticonsTheme::ParseMode mode=KEmoticonsTheme::DefaultParse, const QStringList &exclude=QStringList())
Definition: kopeteemoticons.cpp:36
QList< Kopete::MessageEvent * > pendingMessages(Kopete::Contact *contact)
Returns unread messages for the given contact.
Definition: kopeteviewmanager.cpp:572
static bool balloonGroupMessageNotificationsPerSender()
Get Single notification for messages from the same sender.
Definition: kopetebehaviorsettings.h:342
A incoming file transfer request message.
Definition: kopetemessage.h:102
Plugin * loadPlugin(const QString &pluginId, PluginLoadMode mode=LoadSync)
Load a single plugin by plugin name.
Definition: kopetepluginmanager.cpp:340
Account * account() const
Get the account that this contact belongs to.
Definition: kopetecontact.cpp:498
Definition: kopetechatsession.h:74
static bool animateOnMessageWithOpenChat()
Get Animate on message with open chat.
Definition: kopetebehaviorsettings.h:450
(Default) Message which are not sent via the network. This is just a notification a plugin can show i...
Definition: kopetemessage.h:92
MessageDirection direction() const
Accessor method for the direction of the message.
Definition: kopetemessage.cpp:579
static bool enableEventsWhileAway()
Get Enable events while away.
Definition: kopetebehaviorsettings.h:504
static bool queueUnreadMessages()
Get Queue unread messages.
Definition: kopetebehaviorsettings.h:126
Picture & picture() const
Return the correct Kopete::Picture object depending of the metacontact photo source.
Definition: kopetemetacontact.cpp:744
static bool queueOnlyMessagesOnAnotherDesktop()
Get Queue Only Messages On Another Desktop.
Definition: kopetebehaviorsettings.h:315
static bool raiseMessageWindow()
Get Raise message view on new messages.
Definition: kopetebehaviorsettings.h:234
Definition: kopetecontact.h:58
void slotViewActivated(KopeteView *)
Definition: kopeteviewmanager.cpp:525
bool delayed() const
Accessor method for the "delayed" attribute of the message.
Definition: kopetemessage.cpp:813
static QString viewPlugin()
Get Selected view plugin for Chat Window.
Definition: kopetebehaviorsettings.h:774
void readMessages(Kopete::ChatSession *manager, bool isOutboundMessage, bool activate=false)
Make a view visible and on top.
Definition: kopeteviewmanager.cpp:456
static PluginManager * self()
Retrieve the plugin loader instance.
Definition: kopetepluginmanager.cpp:104
QString requestedPlugin() const
Accessor method for the preferred plugin If null, Kopete will use the user's preferred plugin...
Definition: kopetemessage.cpp:529
static ChatSessionManager * self()
Definition: kopetechatsessionmanager.cpp:39
static bool balloonNotifyIgnoreClosesChatView()
Get Balloon Notification Ignore Closes Chat View.
Definition: kopetebehaviorsettings.h:369
static QString squashMessage(const Kopete::Message &msg, const int len=30)
Used to exrtract the message that will be shown in the notification popup.
Definition: kopeteviewmanager.cpp:52
KopeteView * activeView() const
Provide access to the list of KopeteChatWindow the class maintains.
Definition: kopeteviewmanager.cpp:566
Relates an actual chat to the means used to view it.
Definition: kopeteviewmanager.h:38
MetaContact * metaContact() const
Get the metacontact for this contact.
Definition: kopetecontact.cpp:483
void postNewEvent(Kopete::MessageEvent *)
Post a new event.
Definition: kopetechatsessionmanager.cpp:182
MessageImportance importance() const
Accessor method for the importance.
Definition: kopetemessage.cpp:589
static BehaviorSettings * self()
Definition: kopetebehaviorsettings.cpp:23
const ContactPtrList & members() const
Get a list of all contacts in the session.
Definition: kopetechatsession.cpp:210
QList< Group * > groups() const
The groups the contact is stored in.
Definition: kopetemetacontact.cpp:1061
static KopeteViewManager * viewManager()
This is a singleton class.
Definition: kopeteviewmanager.cpp:133
Definition: kopetepluginmanager.h:40
Definition: kopetemetacontact.h:54
QHash< QString, ActiveNotification * > ActiveNotifications
Definition: kopeteactivenotification.h:26
void notify(QPixmap pic, const QString &eventid, const QString &caption, const QString &message, const QString explanation, const QString debugInfo)
Definition: kopeteutils.cpp:64
void slotEventDeleted(Kopete::MessageEvent *)
An event has been deleted.
Definition: kopeteviewmanager.cpp:477
QString plainBody() const
Get the message body back as plain text.
Definition: kopetemessage.cpp:365
KopeteView * view(bool canCreate=false, const QString &requestedPlugin=QString())
the manager's view
Definition: kopetechatsession.cpp:641
Definition: kopeteview.h:40
QString parsedBody() const
Get the message body as parsed HTML with Emoticons, and URL parsed This should be ready to be shown i...
Definition: kopetemessage.cpp:399
const Contact * from() const
Accessor method for the Contact that sent this message.
Definition: kopetemessage.cpp:509
Highlight notification, for most important messages, which require particular attentions.
Definition: kopetemessage.h:113
void messageAppended(Kopete::Message &msg, Kopete::ChatSession *manager)
Called when a new message has been appended to the given Kopete::ChatSession.
Definition: kopeteviewmanager.cpp:238
KopeteView * view(Kopete::ChatSession *session, const QString &requestedPlugin=QString())
Return a view for the supplied Kopete::ChatSession.
Definition: kopeteviewmanager.cpp:187
QMap< Kopete::ChatSession *, KopeteView * > SessionMap
Definition: kopeteviewmanager.cpp:101
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.