Ignore:
Timestamp:
03/07/13 18:13:05 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Implemented the C++ client part of the re-registration support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/client/c/hu/varadiistvan/xplra/MultiBuffer.h

    r33 r57  
    159159     * made to unregister it.
    160160     */
    161     virtual ~MultiBuffer() throw(Exception);
     161    virtual ~MultiBuffer() throw();
    162162
    163163public:
     
    236236     */
    237237    void unregisterFromXPlane() throw(Exception);
     238
     239    /**
     240     * Unregister this buffer from X-Plane safely, i.e. without
     241     * throwing any exceptions. If unregistration fails, the
     242     * registered ID will be cleared anyway.
     243     *
     244     * @return whether unregistration succeeded.
     245     */
     246    bool unregisterSafelyFromXPlane() throw();
    238247
    239248    /**
     
    480489     */
    481490    void writeSpec(uint8_t command) const throw(Exception);
     491
     492    /**
     493     * Re-register the buffer in X-Plane, if it has been registered
     494     * earlier.
     495     *
     496     * it has not been registered, nothing is done. Otherwise the
     497     * buffer gets registered, and the old ID is forgotten. This
     498     * function is meant to be used by the XPlane object when it
     499     * creates a new connection. If the registration fails, the
     500     * original ID is restored, so that this function could be called
     501     * again
     502     */
     503    void reregisterInXPlane() throw(Exception);
    482504
    483505private:
Note: See TracChangeset for help on using the changeset viewer.