1 /* 2 PresenceNote.java 3 Copyright (C) 2010-2013 Belledonne Communications, Grenoble, France 4 5 This program is free software; you can redistribute it and/or 6 modify it under the terms of the GNU General Public License 7 as published by the Free Software Foundation; either version 2 8 of the License, or (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 */ 19 20 package org.linphone.core; 21 22 public interface PresenceNote { 23 24 /** 25 * Gets the content of a presence note. 26 * @return A String with the content of the presence note. 27 */ getContent()28 String getContent(); 29 30 /** 31 * Sets the content of a presence note. 32 * @param content The content of the note. 33 * @return 0 if successful, a value < 0 in case of error. 34 */ setContent(String content)35 int setContent(String content); 36 37 /** 38 * Gets the language of a presence note. 39 * @return A String containing the language of the presence note, or null if no language is specified. 40 */ getLang()41 String getLang(); 42 43 /** 44 * Sets the language of a presence note. 45 * @param lang The language of the note. 46 * @return 0 if successful, a value < 0 in case of error. 47 */ setLang(String lang)48 int setLang(String lang); 49 50 /** 51 * Gets the native pointer for this object. 52 */ getNativePtr()53 long getNativePtr(); 54 55 } 56