00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 import os
00029 import subprocess
00030 from PyQt4.QtCore import *
00031 from PyQt4.QtGui import *
00032
00033 from Koo import Rpc
00034 from Koo.Common import Common
00035 from Koo.Common import Paths
00036
00037
00038 SupportAnchor = "<a href='http://www.NaN-tic.com'>NaN-tic</a>"
00039
00040
00041 def remoteHelp(parent):
00042 message = _("<p><b>Remote Help</b> will allow you to share your desktop with one member "
00043 "of our support team. This will provide you with first class "
00044 "support in real time by an application expert.</p>"
00045 "<p>You will be able to close the connection at any time by right "
00046 "clicking the orange icon that will appear in the system tray of your "
00047 "desktop.</p>"
00048 "<p>In order to receive such service, you should first contract the support "
00049 "at %(anchor)s.</p>"
00050 "<p>Once you've contracted it, you can contact our helpdesk department "
00051 "and one member of our staff will contact you briefly and tell you which "
00052 "channel you have to use in the next dialog.</p>"
00053 "<p>If you already received the call of one member of our experts you can "
00054 "proceed.</p>") % {
00055 'anchor': SupportAnchor
00056 }
00057 answer = QMessageBox.question(parent, _('Remote Help'), message, _("Proceed"), _("Cancel") )
00058 if answer == 1:
00059 return
00060 language = Rpc.session.context and Rpc.session.context.get('lang') or 'en'
00061 if not language in ('ca','es','en'):
00062 language = 'en'
00063
00064 path = os.path.join( 'Plugins', 'RemoteHelp', 'data' )
00065 path = Paths.searchFile( 'koo_help_%s.exe' % language, path )
00066 if path:
00067 subprocess.Popen([path])
00068
00069 def isRemoteHelpAvailable():
00070 return os.name == 'nt'