001 /*
002 Copyright (C) 2003 Adam Olsen
003
004 This program is free software; you can redistribute it and/or modify
005 it under the terms of the GNU General Public License as published by
006 the Free Software Foundation; either version 1, or (at your option)
007 any later version.
008
009 This program is distributed in the hope that it will be useful,
010 but WITHOUT ANY WARRANTY; without even the implied warranty of
011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012 GNU General Public License for more details.
013
014 You should have received a copy of the GNU General Public License
015 along with this program; if not, write to the Free Software
016 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
017 */
018 package com.valhalla.jbother.jabber;
019
020 import org.jivesoftware.smack.packet.Presence;
021
022 /**
023 * Class for storing relationship between: 1) presence mode, 2) it title, 3) it
024 * shortcut
025 *
026 * @author Yury Soldak (tail)
027 * @see com.valhalla.jbother.menus.SetStatusMenu
028 */
029 public class SelfStatus {
030 private String title;
031
032 private String shortcut;
033
034 private Presence.Mode mode;
035
036 /**
037 * @param title
038 * @param shortcut
039 * @param mode
040 */
041 public SelfStatus(String title, String shortcut, Presence.Mode mode) {
042 this.title = title;
043 this.shortcut = shortcut;
044 this.mode = mode;
045 }
046
047 /**
048 * @return Returns the mode.
049 */
050 public Presence.Mode getMode() {
051 return mode;
052 }
053
054 /**
055 * @param mode
056 * The mode to set.
057 */
058 public void setMode(Presence.Mode mode) {
059 this.mode = mode;
060 }
061
062 /**
063 * @return Returns the shortcut.
064 */
065 public String getShortcut() {
066 return shortcut;
067 }
068
069 /**
070 * @param shortcut
071 * The shortcut to set.
072 */
073 public void setShortcut(String shortcut) {
074 this.shortcut = shortcut;
075 }
076
077 /**
078 * @return Returns the title.
079 */
080 public String getTitle() {
081 return title;
082 }
083
084 /**
085 * @param title
086 * The title to set.
087 */
088 public void setTitle(String title) {
089 this.title = title;
090 }
091 }