Logo Search packages:      
Sourcecode: ibus-xkbc version File versions  Download package

xkb_component.py

# vim:set et sts=4 sw=4:
#
# ibus-xkbc - The Input Bus Keyboard Layout emulaton engine.
#
# Copyright (c) 2009, 2010 Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

00021 class XKB_Component:
    def __init__(self):
        self._hint = 0
        self._name = "NoName"

    def add_hint(self, hint):
        self._hint |= hint

    def get_hint(self):
        return self._hint

    def set_name(self, name):
        self._name = name

    def get_name(self):
        return self._name

    # this should be overridded by subclass
    def set_content(self, content):
        pass

Generated by  Doxygen 1.6.0   Back to index