コード例 #1
0
ファイル: Auth.cs プロジェクト: yliu163/QBclient
        //xmppCH should be a member variable of Auth. It's kept in the arg list for debug purpose.
        public Auth(QBClient qbClient, Label labelStatus, ListBox eventList)
        {
            m_isNewAccount = false;
            m_isNewToken = false;
            m_isCompanyFileValidated = false;
            m_isSyncValidated = false;
            m_neverSynced = false;
            m_agreedToFullSync = (int)FullSyncConfirmed.NA;

            m_isAuthorized = false;

            m_qbClient = qbClient;
            m_labelStatus = labelStatus;
            m_eventList = eventList;
        }
コード例 #2
0
        public XMPPCommandsHandler(QBClient qbClient, Label labelStatus, ListBox eventList)
        {
            m_xmppCon = new XmppClientConnection();
            m_qbClient = qbClient;
            m_eventList = eventList;
            m_labelStatus = labelStatus;

            m_xmppCon.OnLogin += new ObjectHandler(OnLogin);
            m_xmppCon.OnRosterStart += new ObjectHandler(OnRosterStart);
            m_xmppCon.OnRosterEnd += new ObjectHandler(OnRosterEnd);
            m_xmppCon.OnRosterItem += new XmppClientConnection.RosterHandler(OnRosterItem);
            m_xmppCon.OnPresence += new agsXMPP.protocol.client.PresenceHandler(OnPresence);
            m_xmppCon.OnAuthError += new XmppElementHandler(OnAuthError);
            m_xmppCon.OnError += new ErrorHandler(OnError);
            m_xmppCon.OnClose += new ObjectHandler(OnClose);
            m_xmppCon.OnMessage += new agsXMPP.protocol.client.MessageHandler(OnMessage);
        }