modem.h

Go to the documentation of this file.
00001 ///
00002 /// \file       modem.h
00003 ///             Modem API base class for the various serial/modem
00004 ///             modes available on the Blackberry.
00005 ///
00006 
00007 /*
00008     Copyright (C) 2008-2012, Net Direct Inc. (http://www.netdirect.ca/)
00009 
00010     This program is free software; you can redistribute it and/or modify
00011     it under the terms of the GNU General Public License as published by
00012     the Free Software Foundation; either version 2 of the License, or
00013     (at your option) any later version.
00014 
00015     This program is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00018 
00019     See the GNU General Public License in the COPYING file at the
00020     root directory of this project for more details.
00021 */
00022 
00023 #ifndef __BARRY_MODEM_H__
00024 #define __BARRY_MODEM_H__
00025 
00026 #include "dll.h"
00027 
00028 namespace Barry {
00029 
00030 class Data;
00031 
00032 class BXEXPORT Modem
00033 {
00034 public:
00035         virtual ~Modem() {}
00036 
00037         virtual void Open(const char *password = 0) = 0;
00038         virtual void Close() = 0;
00039         virtual void Write(const Data &data, int timeout = -1) = 0;
00040 };
00041 
00042 }
00043 
00044 #endif
00045