Mercurial > pidgin
annotate libgaim/plugins/mono/api/GaimPlugin.cs @ 15113:4a8c368df4ea
[gaim-migrate @ 17899]
Some touchups:
* If one of the parallel connection attempts fails immediately (i.e.
does not time out) then don't cancel the other one.
* Make sure we don't continue on to step 2 of the peer connection
process after we kick off the parallel gaim_proxy_connects(). It
looks like this would happen most of the time, because the
connect_timeout_timer would be added for the verified ip, so it
would NOT be added for the client ip, and so we wouldn't hit the
"return" call because it happens to be in the same block as the
second gaim_timeout_add() call.
* Add the connection timeout timer even if the gaim_proxy_connect() to
the verified ip returns NULL for some crazy reason.
I didn't actually test any of this. I should probably do that when
I get home.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 06 Dec 2006 01:29:59 +0000 |
| parents | 58849b67f00d |
| children |
| rev | line source |
|---|---|
|
14993
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
1 namespace Gaim { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
2 public class PluginInfo { |
| 14192 | 3 private string name; |
| 4 private string version; | |
| 5 private string summary; | |
| 6 private string description; | |
| 7 private string author; | |
| 8 private string homepage; | |
| 9 | |
|
14993
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
10 public PluginInfo(string name, string version, string summary, |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
11 string description, string author, string homepage) |
| 14192 | 12 { |
| 13 this.name = name; | |
| 14 this.version = version; | |
| 15 this.summary = summary; | |
| 16 this.description = description; | |
| 17 this.author = author; | |
| 18 this.homepage = homepage; | |
| 19 } | |
|
14993
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
20 |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
21 public string Name { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
22 get { return name; } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
23 } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
24 |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
25 public string Version { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
26 get { return version; } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
27 } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
28 |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
29 public string Summary { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
30 get { return summary; } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
31 } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
32 |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
33 public string Description { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
34 get { return description; } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
35 } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
36 |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
37 public string Author { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
38 get { return author; } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
39 } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
40 |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
41 public string Homepage { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
42 get { return homepage; } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
43 } |
| 14192 | 44 } |
| 45 | |
|
14993
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
46 abstract public class Plugin { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
47 private PluginInfo info; |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
48 |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
49 public Plugin(PluginInfo info) { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
50 this.info = info; |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
51 } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
52 |
| 14192 | 53 public abstract void Load(); |
| 54 public abstract void Unload(); | |
| 55 public abstract void Destroy(); | |
|
14993
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
56 |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
57 public PluginInfo Info { |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
58 get { return info; } |
|
58849b67f00d
[gaim-migrate @ 17772]
Gary Kramlich <grim@reaperworld.com>
parents:
14192
diff
changeset
|
59 } |
| 14192 | 60 } |
| 61 } |
