1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright (c) 2003-2012 by AG-Software 											 *
3  * All Rights Reserved.																 *
4  * Contact information for AG-Software is available at http://www.ag-software.de	 *
5  *																					 *
6  * Licence:																			 *
7  * The agsXMPP SDK is released under a dual licence									 *
8  * agsXMPP can be used under either of two licences									 *
9  * 																					 *
10  * A commercial licence which is probably the most appropriate for commercial 		 *
11  * corporate use and closed source projects. 										 *
12  *																					 *
13  * The GNU Public License (GPL) is probably most appropriate for inclusion in		 *
14  * other open source projects.														 *
15  *																					 *
16  * See README.html for details.														 *
17  *																					 *
18  * For general enquiries visit our website at:										 *
19  * http://www.ag-software.de														 *
20  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21 
22 using System;
23 
24 namespace agsXMPP
25 {
26     /// <summary>
27     /// Represents the current state of a XMPPConnection
28     /// </summary>
29     public enum XmppConnectionState
30     {
31         /// <summary>
32         /// Session is Disconnected
33         /// </summary>
34         Disconnected,
35 
36         /// <summary>
37         /// The Socket is Connecting
38         /// </summary>
39         Connecting,
40 
41         /// <summary>
42         /// The Socket is Connected
43         /// </summary>
44         Connected,
45         /// <summary>
46         /// The XMPP Session is authenticating
47         /// </summary>
48         Authenticating,
49         /// <summary>
50         /// The XMPP session is autrhenticated
51         /// </summary>
52         Authenticated,
53 
54         /// <summary>
55         /// Resource Binding gets started
56         /// </summary>
57         Binding,
58 
59         /// <summary>
60         /// Resource Binded with sucess
61         /// </summary>
62         Binded,
63 
64         StartSession,
65 
66         /// <summary>
67         /// Initialize Stream Compression
68         /// </summary>
69         StartCompression,
70 
71         /// <summary>
72         /// Stream is compressed now
73         /// </summary>
74         Compressed,
75 
76         SessionStarted,
77 
78         /// <summary>
79         /// We are switching from a normal connection to a secure SSL connection (StartTLS)
80         /// </summary>
81         Securing,
82 
83         /// <summary>
84         /// started the progress to register a new account
85         /// </summary>
86         Registering,
87 
88         /// <summary>
89         /// Account was registered successful
90         /// </summary>
91         Registered
92     }
93 }
94