Ignore:
Timestamp:
Feb 24, 2012, 12:37:36 PM (12 years ago)
Author:
frichard
Message:

-Alignement des antennes
-Version 0.0.9 de libindi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BAORadio/libindi/libindi/libs/indibase/defaultdriver.h

    r504 r642  
     1/*******************************************************************************
     2  Copyright(c) 2011 Jasem Mutlaq. All rights reserved.
     3
     4 This library is free software; you can redistribute it and/or
     5 modify it under the terms of the GNU Library General Public
     6 License version 2 as published by the Free Software Foundation.
     7
     8 This library is distributed in the hope that it will be useful,
     9 but WITHOUT ANY WARRANTY; without even the implied warranty of
     10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     11 Library General Public License for more details.
     12
     13 You should have received a copy of the GNU Library General Public License
     14 along with this library; see the file COPYING.LIB.  If not, write to
     15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
     16 Boston, MA 02110-1301, USA.
     17*******************************************************************************/
     18
    119#ifndef INDIDEFAULTDRIVER_H
    220#define INDIDEFAULTDRIVER_H
     
    523#include "indidriver.h"
    624
     25#include <auto_ptr.h>
     26
     27extern const char *COMMUNICATION_TAB;
     28extern const char *MAIN_CONTROL_TAB;
     29extern const char *MOTION_TAB;
     30extern const char *DATETIME_TAB;
     31extern const char *SITE_TAB;
     32extern const char *OPTIONS_TAB;
     33extern const char *FILTER_TAB;
     34extern const char *GUIDER_TAB;
     35
    736/**
    837 * \class INDI::DefaultDriver
    9    \brief Class to provide extended functionary for drivers in addition
     38   \brief Class to provide extended functionality for drivers in addition
    1039to the functionality provided by INDI::BaseDriver. This class should \e only be subclassed by
    1140drivers directly as it is linked with main(). Virtual drivers cannot employ INDI::DefaultDriver.
     
    2150public:
    2251    DefaultDriver();
    23     virtual ~DefaultDriver() {}
     52    virtual ~DefaultDriver();
    2453
    2554    /** \brief Add Debug, Simulation, and Configuration options to the driver */
     
    74103    virtual bool deleteProperty(const char *propertyName);
    75104
    76     /** \brief Connect or Disconnect a device.
     105
     106    /** \brief Set connection switch status in the client.
    77107      \param status If true, the driver will attempt to connect to the device (CONNECT=ON). If false, it will attempt
    78108to disconnect the device.
    79       \param msg A message to be sent along with connect/disconnect command.
     109      \param status True to set CONNECT on, false to set DISCONNECT on.
     110      \param state State of CONNECTION properti, by default IPS_OK.
     111      \param msg A message to be sent along with connect/disconnect command, by default NULL.
    80112    */
    81113    virtual void setConnected(bool status, IPState state=IPS_OK, const char *msg = NULL);
    82114
    83     int SetTimer(int);
    84     void RemoveTimer(int);
     115    /** \brief Set a timer to call the function TimerHit after ms milliseconds
     116        \param ms timer duration in milliseconds.
     117        \return id of the timer to be used with RemoveTimer
     118   */
     119    int SetTimer(int ms);
     120
     121    /** \brief Remove timer added with SetTimer
     122        \param id ID of the timer as returned from SetTimer
     123   */
     124    void RemoveTimer(int id);
     125
     126    /** \brief Callback function to be called once SetTimer duration elapses. */
    85127    virtual void TimerHit();
    86128
     
    116158        \return True if successful, false otherwise.
    117159    */
    118     bool loadConfig();
     160    virtual bool loadConfig();
    119161
    120162    /** \brief Save the current properties in a configuration file
    121163        \return True if successful, false otherwise.
    122164    */
    123     bool saveConfig();
     165    virtual bool saveConfig();
     166    virtual bool saveConfigItems(FILE *fp);
    124167
    125168    /** \brief Load the default configuration file
    126169        \return True if successful, false otherwise.
    127170    */
    128     bool loadDefaultConfig();
     171    virtual bool loadDefaultConfig();
     172
    129173
    130174    // Simulatin & Debug
Note: See TracChangeset for help on using the changeset viewer.