~ubuntu-branches/ubuntu/natty/smuxi/natty

« back to all changes in this revision

Viewing changes to src/Engine/FrontendManager.cs

  • Committer: Bazaar Package Importer
  • Author(s): Mirco Bauer
  • Date: 2010-01-11 22:47:12 UTC
  • mto: (4.2.5 sid) (1.1.4 upstream) (15.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20100111224712-cdvx3vondz2g08vg
ImportĀ upstreamĀ versionĀ 0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        
94
94
        public bool IsAlive {
95
95
            get {
96
 
                return  !f_TaskQueue.Disposed;
 
96
                return !f_TaskQueue.Disposed;
97
97
            }
98
98
        }
99
99
        
146
146
        public void Sync()
147
147
        {
148
148
            Trace.Call();
149
 
            
 
149
 
 
150
            // DESIGN BUG: Something is fishy here, if a chat is created and
 
151
            // added to the session right before we sync it will be in an
 
152
            // unpopulated state. For example no populated person list... how
 
153
            // should we handle this? Only sync ready chats and sync those
 
154
            // later using some kind of delayed queue?!?
 
155
 
150
156
            // TODO: sort pages network tabs then channel tabs (alphabeticly)
151
157
            // sync pages            
152
158
            lock (_Session.Chats) {
210
216
            if (CurrentProtocolManager != null) {
211
217
                SetNetworkStatus(CurrentProtocolManager.ToString());
212
218
            } else {
213
 
                SetNetworkStatus(String.Format("({0})", _("no network connections")));
 
219
                SetNetworkStatus(String.Format("({0})", _("No network connections")));
214
220
            }
215
221
        }
216
222
        
232
238
        {
233
239
            AddMessageToChat(chat, new MessageModel(text));
234
240
        }
235
 
        
 
241
 
 
242
        [Obsolete("This method is unsafe, use AddTextToChat(cmd.Chat, text) instead!", true)]
236
243
        public void AddTextToCurrentChat(string text)
237
244
        {
238
245
            AddTextToChat(CurrentChat, text);
259
266
        {
260
267
            if (!_SyncedChats.Contains(chat)) {
261
268
#if LOG4NET
262
 
                _Logger.Warn("AddMessageToChat(): chat: " + chat + " is not synced yet, ignoring call...");
 
269
                // too much logging noise
 
270
                //_Logger.Warn("AddMessageToChat(): chat: " + chat + " is not synced yet, ignoring call...");
263
271
#endif
264
272
                return;
265
273
            }
274
282
            });
275
283
        }
276
284
        
 
285
        [Obsolete("This method is unsafe, use AddMessageToChat(cmd.Chat, msg) instead!", true)]
277
286
        public void AddMessageToCurrentChat(MessageModel msg)
278
287
        {
279
288
            AddMessageToChat(CurrentChat, msg);