~ubuntu-branches/ubuntu/precise/kgpg/precise-updates

« back to all changes in this revision

Viewing changes to kgpglibrary.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-12-24 23:16:12 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: package-import@ubuntu.com-20111224231612-6w15s57d2106roq2
Tags: upstream-4.7.95
Import upstream version 4.7.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
                QStringList keys(dialog->selectedKeys());
74
74
                if (!defaultKey.isEmpty() && !keys.contains(defaultKey))
75
75
                        keys.append(defaultKey);
76
 
                startEncode(keys, options, dialog->getSymmetric());
 
76
 
 
77
                m_popisactive = false;
 
78
                m_encryptkeys = keys;
 
79
                m_encryptoptions = options;
 
80
                m_symetric = dialog->getSymmetric();
 
81
                fastEncode(m_urlselecteds.first(), m_encryptkeys, m_encryptoptions, m_symetric);
77
82
        }
78
83
 
79
84
        delete dialog;
80
85
}
81
86
 
82
 
void KgpgLibrary::startEncode(const QStringList &encryptkeys, const QStringList &encryptoptions, const bool symetric)
83
 
{
84
 
        m_popisactive = false;
85
 
        m_encryptkeys = encryptkeys;
86
 
        m_encryptoptions = encryptoptions;
87
 
        m_symetric = symetric;
88
 
        fastEncode(m_urlselecteds.first(), encryptkeys, encryptoptions, symetric);
89
 
}
90
 
 
91
87
void KgpgLibrary::fastEncode(const KUrl &filetocrypt, const QStringList &encryptkeys, const QStringList &encryptoptions, const bool symetric)
92
88
{
93
89
        if ((encryptkeys.isEmpty()) && (!symetric)) {