modemmanager.h

来自「这是法国Kaleido公司提供了一个手机mmi设计平台」· C头文件 代码 · 共 99 行

H
99
字号
/***************************************************************************
                             ModemManager.h  -  
                             ------------
    begin                : Tue Jun 3 2004
    copyright            : (C) 2004 by DigitalAirways
    email                : info@digitalairways.com
 ***************************************************************************/

/*
 * Copyright (c) 2000-2005 DigitalAirways, sarl. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * DigitalAirways, sarl. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with DigitalAirways.
 * A copy of this license is included in the licence.txt file included
 * in this software package.
 *
 * $Id: ModemManager.h,v 1.14 2006/11/06 17:45:48 cvs Exp $
 *
*/

/*
**************************************************************
* TODO
**************************************************************

- 



**************************************************************
* HISTORY
**************************************************************

  - 
*/

#ifndef __MODEMMANAGER__
#define __MODEMMANAGER__

#include "ATCommander.h"


class ModemManager {
	protected:
		char* lastError;
		ATCommander* atCommander;
	public :
		DEFINE_NEW(ModemManager);
		DEFINE_DELETE(ModemManager) ;

		ModemManager( ATCommander* newAtCommander)
			{
			atCommander=newAtCommander;
			}
		virtual ~ModemManager()
			{
			}
		virtual int openModem(char* device)
			{
#ifdef DEV_DEBUG
			Verbose( VERB_LEV_ERROR, "ERROR ModemManager::openModem() not implemented.\n");
#endif // def DEV_DEBUG
			return 0;
			}
		virtual void closeModem()
			{
#ifdef DEV_DEBUG
			Verbose( VERB_LEV_ERROR, "ERROR ModemManager::closeModem() not implemented.\n");
#endif // def DEV_DEBUG
			}
		/* 
		 * Returns FALSE if the operation fails
		 */
		virtual int sendData(char *outgoingData, int outgoingLen, boolean plusCR)
			{
#ifdef DEV_DEBUG
			Verbose( VERB_LEV_ERROR, "ERROR ModemManager::sendData() not implemented.\n");
#endif // def DEV_DEBUG
			return 0;
			}
		/*
		 * Returns FALSE if the operation fails
		 */
		virtual int readData(char *incomingData, int *incomingLen)
			{
#ifdef DEV_DEBUG
			Verbose( VERB_LEV_ERROR, "ERROR ModemManager::readData() not implemented.\n");
#endif // def DEV_DEBUG
			return 0;
			}
	};


#endif // __MODEMMANAGER__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?