ekiga r7431 - trunk/lib/engine/chat/skel
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7431 - trunk/lib/engine/chat/skel
- Date: Fri, 5 Dec 2008 04:09:27 +0000 (UTC)
Author: jpuydt
Date: Fri Dec 5 04:09:27 2008
New Revision: 7431
URL: http://svn.gnome.org/viewvc/ekiga?rev=7431&view=rev
Log:
Added back iterators to the chat stack dialect-impl objects
Modified:
trunk/lib/engine/chat/skel/dialect-impl.h
Modified: trunk/lib/engine/chat/skel/dialect-impl.h
==============================================================================
--- trunk/lib/engine/chat/skel/dialect-impl.h (original)
+++ trunk/lib/engine/chat/skel/dialect-impl.h Fri Dec 5 04:09:27 2008
@@ -39,6 +39,7 @@
#include "dialect.h"
#include "map-key-iterator.h"
+#include "map-key-const-iterator.h"
namespace Ekiga
{
@@ -75,14 +76,22 @@
/* More STL-like ways to access the chats within this Ekiga::DialectImpl
*/
typedef typename Ekiga::map_key_iterator<std::map<gmref_ptr<SimpleChatType>, std::list<sigc::connection> > > simple_iterator;
+ typedef typename Ekiga::map_key_const_iterator<std::map<gmref_ptr<SimpleChatType>, std::list<sigc::connection> > > simple_const_iterator;
typedef typename Ekiga::map_key_iterator<std::map<gmref_ptr<MultipleChatType>, std::list<sigc::connection> > > multiple_iterator;
+ typedef typename Ekiga::map_key_const_iterator<std::map<gmref_ptr<MultipleChatType>, std::list<sigc::connection> > > multiple_const_iterator;
simple_iterator simple_begin ();
simple_iterator simple_end ();
+ simple_const_iterator simple_begin () const;
+ simple_const_iterator simple_end () const;
+
multiple_iterator multiple_begin ();
multiple_iterator multiple_end ();
+ multiple_const_iterator multiple_begin () const;
+ multiple_const_iterator multiple_end () const;
+
/** Adds a SimpleChat to the Ekiga::Dialect.
* @param The SimpleChat to be added.
* @return: The Ekiga::Dialect 'simple_chat_added' signal is emitted.
@@ -187,6 +196,20 @@
}
template<typename SimpleChatType, typename MultipleChatType>
+typename Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::simple_const_iterator
+Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::simple_begin () const
+{
+ return simple_const_iterator (simple_chats.begin ());
+}
+
+template<typename SimpleChatType, typename MultipleChatType>
+typename Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::simple_const_iterator
+Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::simple_end () const
+{
+ return simple_const_iterator (simple_chats.end ());
+}
+
+template<typename SimpleChatType, typename MultipleChatType>
typename Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::multiple_iterator
Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::multiple_begin ()
{
@@ -201,6 +224,20 @@
}
template<typename SimpleChatType, typename MultipleChatType>
+typename Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::multiple_const_iterator
+Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::multiple_begin () const
+{
+ return multiple_const_iterator (multiple_chats.begin ());
+}
+
+template<typename SimpleChatType, typename MultipleChatType>
+typename Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::multiple_const_iterator
+Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::multiple_end () const
+{
+ return multiple_const_iterator (multiple_chats.end ());
+}
+
+template<typename SimpleChatType, typename MultipleChatType>
void
Ekiga::DialectImpl<SimpleChatType, MultipleChatType>::add_simple_chat (gmref_ptr<SimpleChatType> chat)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]