## Copyright (c) 2017-2018, The Sumokoin Project (www.sumokoin.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket 

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'SaroniteRW'))
    
class QSingleApplication(QApplication):
    sock_file = 'saronite_lite_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)
     
    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
        self.m_socket.connected.connect(self.connectToExistingApp)
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "The Digital Reserve Gui Wallet"
APP_NAME = "The Digital Reserve Wallet"
VERSION = [0, 4, 0]

_data_dir = makeDir(os.path.join(os.getcwd(), 'data'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("1", "English"),
    ("0", "German"),  #Deutsch
    ("2", "Spanish"),  #Español
    ("3", "Francais"),  #Français
    ("4", "Italian"),  #Italiano
    ("5", "Dutch"),  #Nederlands
    ("6", "Portuguese"),  #Português
    ("7", "Russian"),  #русский языкês
    ("8", "Japanese"),  #日本語
Example #3
0
# # Copyright (c) 2017, The Sumokoin Project (www.sumokoin.org)
'''
QSingleApplication is a wrapper class for creating single interface
of appliaction
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'SumokoinGUIWallet'))


class QSingleApplication(QApplication):
    sock_file = 'sumokoin_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)

    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
App settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = APP_NAME = "Cryptonote Easy Miner"
VERSION = [0, 1, 'b1.3']

OPT_RANDOMIZE = False  # Randomize scan range start to reduce duplicates
OPT_SCANTIME = 60
OPT_REPLY_WITH_RPC2_EXPLICIT = True # support for explicit RPC 2.0 in reply
OPT_SEND_PING = True
OPT_PING_INTERVAL = 1 # Ping interval in second

HASHING_ALGO = ["Cryptonight", "Cryptonight-Light"]

_data_dir = str(makeDir(os.path.join(getHomeDir(), 'EvoMiner')))
DATA_DIR = _data_dir

log_file  = os.path.join(DATA_DIR, 'logs', 'evominer.log') # default logging file
log_level = logging.DEBUG # logging level
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Sumokoin GUI Wallet"
APP_NAME = "Sumokoin Wallet"
VERSION = [0, 0, 1]

_data_dir = makeDir(os.path.join(getHomeDir(), 'SumokoinGUIWallet'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "English"),
    ("1", "Spanish"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
## Copyright (c) 2018, The Fonero Project (www.fonero.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'FoneroGUIWallet'))


class QSingleApplication(QApplication):
    sock_file = 'fonero_gui_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)

    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
Example #7
0
## Copyright (c) 2017, The Sumokoin Project (www.sumokoin.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'BixbiteGUIWallet'))


class QSingleApplication(QApplication):
    sock_file = 'bixbite_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)

    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Solace GUI Wallet"
APP_NAME = "Solace GUI Wallet"
VERSION = [1, 0, 0]


_data_dir = makeDir(os.path.join(getHomeDir(), 'SolaceGUI'))
DATA_DIR = _data_dir

log_file  = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file
log_level = logging.DEBUG # logging level

seed_languages = [("0", "English"), 
                  ("1", "Spanish"), 
                  ("2", "German"), 
                  ("3", "Italian"), 
                  ("4", "Portuguese"),
                  ("5", "Russian"),
                  ("6", "Japanese"),
                ]

# COIN - number of smallest units in one coin
Example #9
0
__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Ryo GUI Wallet"
APP_NAME = "Ryo GUI Wallet"
VERSION = [0, 2, 0, 2]


if "--testnet" in sys.argv[1:]:
    _data_dir = makeDir(os.path.join(getHomeDir(), 'RyoGUIWallet', 'testnet'))
else:
    _data_dir = makeDir(os.path.join(getHomeDir(), 'RyoGUIWallet'))

DATA_DIR = _data_dir

log_file  = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file
log_level = logging.DEBUG # logging level

seed_languages = [
    ("0", "German"),
    ("1", "English"),
    ("2", "Spanish"),
    ("3", "French"),
    ("4", "Italian"),
    ("5", "Dutch"),
## Copyright (c) 2017, The Sumokoin Project (www.sumokoin.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket 

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'ToklioGUIWallet'))
    
class QSingleApplication(QApplication):
    sock_file = 'toklio_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)
     
    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
        self.m_socket.connected.connect(self.connectToExistingApp)
'''
App top-level settings
'''
__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

VERSION = [0, 2, 2]
APP_NAME = "TXX GUI Wallet"
USER_AGENT = '%s v%s' % (APP_NAME, '.'.join(str(v) for v in VERSION))

_data_dir = makeDir(os.path.join(getHomeDir(), 'TXXGUI'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("German", u"Deutsch"),
    ("English", u"English"),
    ("Spanish", u"Español"),
    ("French", u"Français"),
    ("Italian", u"Italiano"),
    ("Dutch", u"Nederlands"),
    ("Portuguese", u"Português"),
    ("Russian", u"Русский язык"),
    ("Japanese", u"日本語 "),
Example #12
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Misc classes for app and wallet settings
'''
import os
import json

from settings import DATA_DIR
from utils.common import makeDir, readFile, writeFile
from utils.logger import log, LEVEL_DEBUG, LEVEL_ERROR, LEVEL_INFO

config_path = os.path.join(DATA_DIR, 'config')
makeDir(config_path)


class WalletInfoException(Exception):
    pass


class WalletInfo():
    def __init__(self, app):
        self.app = app
        self.wallet_info_filepath = os.path.join(config_path,
                                                 'wallet_info.json')
        self.is_loaded = False
        self.top_tx_height = 0
        self.bc_height = -1

        self.wallet_address = None
        self.wallet_filepath = None
Example #13
0
## Copyright (c) 2017, The Sumokoin Project (www.sumokoin.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'XDCGUIWallet'))


class QSingleApplication(QApplication):
    sock_file = 'xdc_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)

    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
Example #14
0
## Copyright (c) 2017, The Hongbao Project (www.hongbaoblockchain.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'HongbaoGUIWallet'))


class QSingleApplication(QApplication):
    sock_file = 'hongbao_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)

    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
Example #15
0
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging
import socket

from utils.common import getHomeDir, makeDir

USER_AGENT = "Solace Remote Wallet"
APP_NAME = "Solace Remote Wallet"
VERSION = [0, 0, 1]

_data_dir = makeDir(os.path.join(getHomeDir(), 'SolaceRemote'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "English"),
    ("1", "Spanish"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
Example #16
0
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Zephyr GUI Wallet"
APP_NAME = "Zephyr GUI Wallet"
VERSION = [1, 1, 0]

_data_dir = makeDir(os.path.join(getHomeDir(), 'ZephyrGUIWallet'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "English"),
    ("1", "Spanish"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
Example #17
0
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Saronite RW"
APP_NAME = "Saronite RW"
VERSION = [1, 0, 0]

_data_dir = makeDir(os.path.join(getHomeDir(), 'SaroniteRW'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "English"),
    ("1", "Spanish"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
## Copyright (c) 2017-2018, The Sumokoin Project (www.sumokoin.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket 

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'Solaceremote'))
    
class QSingleApplication(QApplication):
    sock_file = 'solace_lite_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)
     
    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
        self.m_socket.connected.connect(self.connectToExistingApp)
Example #19
0
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Galluscoin GUI Wallet"
APP_NAME = "Galluscoin GUI Wallet"
VERSION = [0, 1, 0]

_data_dir = makeDir(os.path.join(getHomeDir(), 'GalluscoinGUIWallet'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "English"),
    ("1", "Spanish"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
Example #20
0
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Bixbite GUI Wallet"
APP_NAME = "Bixbite GUI Wallet"
VERSION = [0, 0, 2]

_data_dir = makeDir(os.path.join(getHomeDir(), 'BixbiteGUIWallet'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "English"),
    ("1", "Spanish"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
# -*- coding: utf-8 -*-
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'CryptonoteEvoLITEWallet'))


class QSingleApplication(QApplication):
    sock_file = 'evo_lite_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)

    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
Example #22
0
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "XDC GUI Wallet"
APP_NAME = "XDC GUI Wallet"
VERSION = [0, 1, 2]

_data_dir = makeDir(os.path.join(getHomeDir(), 'XDCGUIWallet'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "English"),
    ("1", "Spanish"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
Example #23
0
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Wownero GUI Wallet"
APP_NAME = "Wownero GUI Wallet"
VERSION = [0, 2, 1]

_data_dir = makeDir(os.path.join(getHomeDir(), 'WowneroGUIWallet'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "English"),
    ("1", "Spanish"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
Example #24
0
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Hongbao GUI Wallet"
APP_NAME = "Hongbao Wallet"
VERSION = [0, 0, 1]

_data_dir = makeDir(os.path.join(getHomeDir(), 'HongbaoGUIWallet'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "English"),
    ("1", "Spanish"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
App top-level settings
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Toklio GUI Wallet"
APP_NAME = "Toklio GUI Wallet"
VERSION = [0, 0, 4]

_data_dir = makeDir(os.path.join(getHomeDir(), 'ToklioGUIWallet'))
DATA_DIR = _data_dir

log_file = os.path.join(DATA_DIR, 'logs', 'app.log')  # default logging file
log_level = logging.DEBUG  # logging level

seed_languages = [
    ("0", "Deutsh"),
    ("1", "English"),
    ("2", "German"),
    ("3", "Italian"),
    ("4", "Portuguese"),
    ("5", "Russian"),
    ("6", "Japanese"),
]
Example #26
0
## Copyright (c) 2017-2018, The Sumokoin Project (www.sumokoin.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket 

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'RyoLITEWallet'))
    
class QSingleApplication(QApplication):
    sock_file = 'ryo_lite_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)
     
    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
        self.m_socket.connected.connect(self.connectToExistingApp)
Example #27
0
'''

__doc__ = 'default application wide settings'

import sys
import os
import logging

from utils.common import getHomeDir, makeDir

USER_AGENT = "Sumo LITE Wallet"
APP_NAME = "Sumo LITE Wallet"
VERSION = [0, 1, 0]


_data_dir = makeDir(os.path.join(getHomeDir(), 'SumoLITEWallet'))
DATA_DIR = _data_dir

log_file  = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file
log_level = logging.DEBUG # logging level

seed_languages = [("0", "English"), 
                  ("1", "Spanish"), 
                  ("2", "German"), 
                  ("3", "Italian"), 
                  ("4", "Portuguese"),
                  ("5", "Russian"),
                  ("6", "Japanese"),
                ]

# COIN - number of smallest units in one coin
Example #28
0
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket

from utils.common import getSockDir, makeDir

if "--testnet" in sys.argv[1:]:
    DATA_DIR = makeDir(os.path.join(getSockDir(), 'RyoGUIWallet', 'testnet'))
else:
    DATA_DIR = makeDir(os.path.join(getSockDir(), 'RyoGUIWallet'))


class QSingleApplication(QApplication):
    sock_file = 'ryo_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)

    def singleStart(self, appMain):
        self.appMain = appMain
## Copyright (c) 2017, The Sumokoin Project (www.sumokoin.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'SolaceGUI'))


class QSingleApplication(QApplication):
    sock_file = 'solace_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)

    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()
## Copyright (c) 2017, The Sumokoin Project (www.sumokoin.org)
'''
QSingleApplication is a wrapper class for creating single interface 
of appliaction 
'''

from __future__ import print_function
import sys, os

from PySide.QtGui import QApplication
from PySide.QtCore import QIODevice, QTimer
from PySide.QtNetwork import QLocalServer, QLocalSocket

from utils.common import getSockDir, makeDir

DATA_DIR = makeDir(os.path.join(getSockDir(), 'GallusGUI'))


class QSingleApplication(QApplication):
    sock_file = 'galluscoin_wallet_sock'
    if sys.platform == 'win32':
        sock_file = "\\\\.\\pipe\\%s" % sock_file
    elif sys.platform == 'darwin':
        sock_file = os.path.join(DATA_DIR, '.%s' % sock_file)
    else:
        sock_file = os.path.join(getSockDir(), sock_file)

    def singleStart(self, appMain):
        self.appMain = appMain
        # Socket
        self.m_socket = QLocalSocket()