2011-01-05 17:00:54 +01:00
|
|
|
# UI module
|
|
|
|
# Copyright (C) 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>
|
2002-07-12 03:58:51 +02:00
|
|
|
#
|
|
|
|
# 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
|
2003-04-16 21:23:45 +02:00
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
2002-07-12 03:58:51 +02:00
|
|
|
#
|
|
|
|
# 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
|
2006-08-12 06:15:55 +02:00
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2002-07-12 03:58:51 +02:00
|
|
|
|
2011-01-05 17:00:54 +01:00
|
|
|
from offlineimap.ui.UIBase import getglobalui, setglobalui
|
|
|
|
from offlineimap.ui import TTY, Noninteractive, Machine
|
2002-07-12 03:58:51 +02:00
|
|
|
|
2011-03-06 11:04:46 +01:00
|
|
|
UI_LIST = {'ttyui': TTY.TTYUI,
|
|
|
|
'basic': Noninteractive.Basic,
|
|
|
|
'quiet': Noninteractive.Quiet,
|
|
|
|
'machineui': Machine.MachineUI}
|
2003-01-05 08:51:35 +01:00
|
|
|
|
2011-01-05 17:00:54 +01:00
|
|
|
#add Blinkenlights UI if it imports correctly (curses installed)
|
2003-01-05 08:51:35 +01:00
|
|
|
try:
|
2011-01-05 17:00:54 +01:00
|
|
|
from offlineimap.ui import Curses
|
2011-03-06 11:04:46 +01:00
|
|
|
UI_LIST['blinkenlights'] = Curses.Blinkenlights
|
2003-01-05 08:51:35 +01:00
|
|
|
except ImportError:
|
|
|
|
pass
|