mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Collect all export formats in pki_export. Each export format has assigned acouple of flags, indicating, whether they are text, concatenateable, encrypted, usable for multiple selections or only for a single item.
47 lines
1020 B
C++
47 lines
1020 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2001 - 2010 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __DB_KEY_H
|
|
#define __DB_KEY_H
|
|
|
|
#include "pki_export.h"
|
|
#include "db_base.h"
|
|
#include "pki_key.h"
|
|
#include "xfile.h"
|
|
|
|
class QModelIndex;
|
|
class QContextMenuEvent;
|
|
|
|
class db_key: public db_base
|
|
{
|
|
Q_OBJECT
|
|
|
|
protected:
|
|
virtual dbheaderList getHeaders();
|
|
public:
|
|
db_key();
|
|
QList<pki_key*> getUnusedKeys();
|
|
QList<pki_key*> getAllKeys();
|
|
pki_base *newPKI(enum pki_type type = none);
|
|
void inToCont(pki_base *pki);
|
|
void remFromCont(const QModelIndex &idx);
|
|
pki_base* insert(pki_base *item);
|
|
void setOwnPass(QModelIndex idx, enum pki_key::passType);
|
|
void loadContainer();
|
|
pki_key *newKey(const keyjob &task, const QString &name);
|
|
int exportFlags(const QModelIndex &index) const;
|
|
void exportItem(const QModelIndex &index,
|
|
const pki_export *xport, XFile &file) const;
|
|
|
|
signals:
|
|
void delKey(pki_key *delkey);
|
|
void newKey(pki_key *newkey);
|
|
void keyDone(pki_key *nkey);
|
|
};
|
|
|
|
#endif
|