[smuxi/experiments/certfp: 15/55] Engine: implemented ProtocolManagerBase.ToString()
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/experiments/certfp: 15/55] Engine: implemented ProtocolManagerBase.ToString()
- Date: Sun, 12 Jan 2014 07:27:35 +0000 (UTC)
commit 112dafa29fc1b6fd762f46e516b079e539452248
Author: Mirco Bauer <meebey meebey net>
Date: Sat Dec 28 16:06:35 2013 +0100
Engine: implemented ProtocolManagerBase.ToString()
src/Engine/Protocols/ProtocolManagerBase.cs | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/Engine/Protocols/ProtocolManagerBase.cs b/src/Engine/Protocols/ProtocolManagerBase.cs
index f25f811..b66527b 100644
--- a/src/Engine/Protocols/ProtocolManagerBase.cs
+++ b/src/Engine/Protocols/ProtocolManagerBase.cs
@@ -150,6 +150,20 @@ namespace Smuxi.Engine
}
}
+ public override string ToString()
+ {
+ string result;
+ if (Chat == null) {
+ result = NetworkID;
+ } else {
+ result = Chat.Name;
+ }
+ if (!IsConnected) {
+ result += " (" + _("not connected") + ")";
+ }
+ return result;
+ }
+
public abstract bool Command(CommandModel cmd);
public abstract void Connect(FrontendManager fm,
ServerModel server);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]