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    /**
024     * Class for storing relationship between: 1) presence mode, 2) it title, 3) it shortcut
025     *
026     * @author Yury Soldak (tail)
027     * @see com.valhalla.jbother.menus.SetStatusMenu
028     */
029    public class SelfStatus {
030            private String title;
031            private String shortcut;
032            private Presence.Mode mode;
033    
034            /**
035             * @param title
036             * @param shortcut
037             * @param mode
038             */
039            public SelfStatus(String title, String shortcut, Presence.Mode mode) {
040                    this.title = title;
041                    this.shortcut = shortcut;
042                    this.mode = mode;
043            }
044            /**
045             * @return Returns the mode.
046             */
047            public Presence.Mode getMode() {
048                    return mode;
049            }
050            /**
051             * @param mode The mode to set.
052             */
053            public void setMode(Presence.Mode mode) {
054                    this.mode = mode;
055            }
056            /**
057             * @return Returns the shortcut.
058             */
059            public String getShortcut() {
060                    return shortcut;
061            }
062            /**
063             * @param shortcut The shortcut to set.
064             */
065            public void setShortcut(String shortcut) {
066                    this.shortcut = shortcut;
067            }
068            /**
069             * @return Returns the title.
070             */
071            public String getTitle() {
072                    return title;
073            }
074            /**
075             * @param title The title to set.
076             */
077            public void setTitle(String title) {
078                    this.title = title;
079            }
080    }