View Javadoc
1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   package net.sf.atmodem4j.core.gsm;
6   
7   /*
8    * #%L
9    * ATModem4J Core
10   * %%
11   * Copyright (C) 2009 - 2014 atmodem4j
12   * %%
13   * atmodem4j - Drivers for the AT modem - http://atmodem4j.sourceforge.net/
14   * Copyright (C) 2009-2014, atmodem4j.sf.net, and individual contributors as indicated
15   * by the @authors tag. See the copyright.txt in the distribution for a
16   * full listing of individual contributors.
17   * 
18   * This is free software; you can redistribute it and/or modify it
19   * under the terms of the GNU General Public License as
20   * published by the Free Software Foundation; either version 3 of
21   * the License, or (at your option) any later version.
22   * 
23   * This software is distributed in the hope that it will be useful,
24   * but WITHOUT ANY WARRANTY; without even the implied warranty of
25   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26   * Lesser General Public License for more details.
27   * 
28   * You should have received a copy of the GNU Lesser General Public
29   * License along with this software; if not, write to the Free
30   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
31   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
32   * #L%
33   */
34  
35  import java.io.IOException;
36  import net.sf.atmodem4j.core.Extention;
37  
38  /**
39   *
40   * @author aploese
41   */
42  public interface GsmExtention extends Extention {
43  
44      /**
45       *
46       * @param phonenumber
47       * @param text the text to send.
48       *
49       * Try to send 7-Bit ASCII, if its impossible 16 bit will be used.
50       * If the Message is too long the message will be split and multiple medssages will be sent.
51       * The multiple messages will be concatentiated by the receiver.
52       */
53      void sendSms(String phonenumber, String text);
54  
55      void sendPdu(int pduLength, String pdu) throws IOException,
56              InterruptedException;
57  
58      boolean isSimPin() throws IOException, InterruptedException;
59  
60      String getSimPin() throws IOException, InterruptedException;
61  
62      void setSimPin(String simPin) throws IOException, InterruptedException;
63  
64      String getNetworkProvider() throws IOException, InterruptedException;
65  
66      String getSignalQuality(boolean raw)throws IOException, InterruptedException;
67  
68  }