COM-30 COM-24: Refactorings keysync
authorMarkus Schaber <markus@pep-security.net>
Tue, 04 Oct 2016 23:07:42 +0200
branchkeysync
changeset 1789f30e2a5f72c
parent 177 4d197f1c3abb
child 179 4d7e5bf27a3b
COM-30 COM-24: Refactorings
Drop unused enum.
CpEpEngine.h
     1.1 --- a/CpEpEngine.h	Tue Oct 04 23:00:44 2016 +0200
     1.2 +++ b/CpEpEngine.h	Tue Oct 04 23:07:42 2016 +0200
     1.3 @@ -18,57 +18,6 @@
     1.4  using namespace pEp::utility;
     1.5  
     1.6  
     1.7 -// TODO: Remove this enum, it is not needed in the interface, but it currently is still used in the code which is
     1.8 -// not removed / reworked yet...
     1.9 -typedef enum pEpStatus {
    1.10 -     pEpStatusOK = 0,
    1.11 -
    1.12 -     pEp_INIT_CANNOT_LOAD_GPGME = 0x0110,
    1.13 -     pEp_INIT_GPGME_INIT_FAILED = 0x0111,
    1.14 -     pEp_INIT_NO_GPG_HOME = 0x0112,
    1.15 -     pEp_INIT_NETPGP_INIT_FAILED = 0x0113,
    1.16 -
    1.17 -     pEp_INIT_SQLITE3_WITHOUT_MUTEX = 0x0120,
    1.18 -     pEp_INIT_CANNOT_OPEN_DB = 0x0121,
    1.19 -     pEp_INIT_CANNOT_OPEN_SYSTEM_DB = 0x0122,
    1.20 -
    1.21 -     pEp_KEY_NOT_FOUND = 0x0201,
    1.22 -     pEp_KEY_HAS_AMBIG_NAME = 0x0202,
    1.23 -     pEp_GET_KEY_FAILED = 0x0203,
    1.24 -
    1.25 -     pEp_CANNOT_FIND_IDENTITY = 0x0301,
    1.26 -     pEp_CANNOT_SET_PERSON = 0x0381,
    1.27 -     pEp_CANNOT_SET_PGP_KEYPAIR = 0x0382,
    1.28 -     pEp_CANNOT_SET_IDENTITY = 0x0383,
    1.29 -     pEp_CANNOT_SET_TRUST = 0x0384,
    1.30 -
    1.31 -     pEp_UNENCRYPTED = 0x0400,
    1.32 -     pEp_VERIFIED = 0x0401,
    1.33 -     pEp_DECRYPTED = 0x0402,
    1.34 -     pEp_DECRYPTED_AND_VERIFIED = 0x0403,
    1.35 -     pEp_DECRYPT_WRONG_FORMAT = 0x0404,
    1.36 -     pEp_DECRYPT_NO_KEY = 0x0405,
    1.37 -     pEp_DECRYPT_SIGNATURE_DOES_NOT_MATCH = 0x0406,
    1.38 -     pEp_VERIFY_NO_KEY = 0x0407,
    1.39 -     pEp_VERIFIED_AND_TRUSTED = 0x0408,
    1.40 -     pEp_CANNOT_DECRYPT_UNKNOWN = 0x04ff,
    1.41 -
    1.42 -     pEp_TRUSTWORD_NOT_FOUND = 0x0501,
    1.43 -
    1.44 -     pEp_CANNOT_CREATE_KEY = 0x0601,
    1.45 -     pEp_CANNOT_SEND_KEY = 0x0602,
    1.46 -
    1.47 -     pEp_PHRASE_NOT_FOUND = 0x0701,
    1.48 -
    1.49 -     pEp_COMMIT_FAILED = 0xff01,
    1.50 -
    1.51 -     pEp_CANNOT_CREATE_TEMP_FILE = -5,
    1.52 -     pEp_ILLEGAL_VALUE = -4,
    1.53 -     pEp_BUFFER_TOO_SMALL = -3,
    1.54 -     pEp_OUT_OF_MEMORY = -2,
    1.55 -     pEp_UNKNOWN_ERROR = -1
    1.56 - } pEpStatus;
    1.57 -
    1.58  // CpEpEngine
    1.59  
    1.60  class ATL_NO_VTABLE CpEpEngine :