7 Module implementing the gpg extension interface. |
7 Module implementing the gpg extension interface. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import QObject |
|
13 from PyQt4.QtGui import QDialog |
12 from PyQt4.QtGui import QDialog |
14 |
13 |
|
14 from ..HgExtension import HgExtension |
15 from ..HgDialog import HgDialog |
15 from ..HgDialog import HgDialog |
16 from ..HgRevisionSelectionDialog import HgRevisionSelectionDialog |
16 from ..HgRevisionSelectionDialog import HgRevisionSelectionDialog |
17 |
17 |
18 from .HgGpgSignaturesDialog import HgGpgSignaturesDialog |
18 from .HgGpgSignaturesDialog import HgGpgSignaturesDialog |
19 from .HgGpgSignDialog import HgGpgSignDialog |
19 from .HgGpgSignDialog import HgGpgSignDialog |
20 |
20 |
21 |
21 |
22 class Gpg(QObject): |
22 class Gpg(HgExtension): |
23 """ |
23 """ |
24 Class implementing the fetch extension interface. |
24 Class implementing the fetch extension interface. |
25 """ |
25 """ |
26 def __init__(self, vcs): |
26 def __init__(self, vcs): |
27 """ |
27 """ |
28 Constructor |
28 Constructor |
29 |
29 |
30 @param vcs reference to the Mercurial vcs object |
30 @param vcs reference to the Mercurial vcs object |
31 """ |
31 """ |
32 QObject.__init__(self, vcs) |
32 super().__init__(vcs) |
33 |
|
34 self.vcs = vcs |
|
35 |
33 |
36 self.gpgSignaturesDialog = None |
34 self.gpgSignaturesDialog = None |
37 |
35 |
38 def shutdown(self): |
36 def shutdown(self): |
39 """ |
37 """ |