1 /* 2 * To change this template, choose Tools | Templates 3 * and open the template in the editor. 4 */ 5 6 package net.sf.atmodem4j.core; 7 8 /* 9 * #%L 10 * ATModem4J Core 11 * %% 12 * Copyright (C) 2009 - 2014 atmodem4j 13 * %% 14 * atmodem4j - Drivers for the AT modem - http://atmodem4j.sourceforge.net/ 15 * Copyright (C) 2009-2014, atmodem4j.sf.net, and individual contributors as indicated 16 * by the @authors tag. See the copyright.txt in the distribution for a 17 * full listing of individual contributors. 18 * 19 * This is free software; you can redistribute it and/or modify it 20 * under the terms of the GNU General Public License as 21 * published by the Free Software Foundation; either version 3 of 22 * the License, or (at your option) any later version. 23 * 24 * This software is distributed in the hope that it will be useful, 25 * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 27 * Lesser General Public License for more details. 28 * 29 * You should have received a copy of the GNU Lesser General Public 30 * License along with this software; if not, write to the Free 31 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 32 * 02110-1301 USA, or see the FSF site: http://www.fsf.org. 33 * #L% 34 */ 35 36 import net.sf.atmodem4j.core.parser.ResultCodeToken; 37 38 /** 39 * 40 * @author aploese 41 */ 42 public interface CallHandler { 43 44 public void parsedResultCode(Modem modem, ResultCodeToken r); 45 46 void connect(Modem modem, Connection connection); 47 48 boolean ring(Modem modem); 49 50 void dialed(Modem modem, String number); 51 52 void answered(Modem modem); 53 54 }