class doc.Session

class Session: doc.Plugin {
    // enums

    enum SessionConnectionState;

    // properties

    string_t autoget property m_title;
    doc.Session.SessionConnectionState autoget property m_sessionConnectionState;
    bool autoget property m_isTransmitEnabled;

    // construction

    construct(doc.PluginHost* host);

    // methods

    override size_t errorcode transmit(
        void const* p,
        size_t size
    );

    virtual bool errorcode connectSession();
    virtual void disconnectSession();
    void startSession();

    virtual bool errorcode dispatch(
        uint_t code,
        variant_t in,
        variant_t* out = null
    );
};

Inherited Members

public:
    // fields

    doc.PluginHost* readonly m_pluginHost;

    // properties

    log.Writer* const property m_logWriter;

    // methods

    virtual void load(doc.Storage* storage);
    virtual void save(doc.Storage* storage);
    virtual void updateProperties();
    virtual bool errorcode applyProperties();
    virtual void restoreDefaultProperties();

    abstract size_t errorcode transmit(
        void const* p,
        size_t size
    );

    ui.Action* createAction(
        string_t text,
        ui.Icon* icon = null,
        bool isCheckable = false,
        bool isChecked = false
    );

    ui.Action* createAction(
        string_t text,
        string_t iconFileName,
        bool isCheckable = false,
        bool isChecked = false
    );