#include </home/clem/local/src/opie/noncore/apps/zsafe/zsafe.h>
Collaboration diagram for ZSafe:

Public Types | |
| enum | { PWERR_GOOD, PWERR_OPEN, PWERR_PERM, PWERR_SYML, PWERR_STAT, PWERR_DATA } |
Public Slots | |
| virtual void | deletePwd () |
| virtual void | editPwd () |
| virtual void | newPwd () |
| virtual void | findPwd () |
| virtual void | quitMe () |
| virtual void | listViewSelected (QListViewItem *_item) |
| virtual void | showInfo (QListViewItem *_item) |
| virtual void | writeAllEntries () |
| virtual void | readAllEntries () |
| virtual void | removeAsciiFile () |
| virtual void | setPasswordDialogDone () |
| virtual void | addCategory () |
| virtual void | delCategory () |
| virtual void | editCategory () |
| virtual void | cutItem () |
| virtual void | copyItem () |
| virtual void | pasteItem () |
| virtual void | newDocument () |
| virtual void | loadDocument () |
| virtual void | saveDocumentAs () |
| virtual void | saveDocumentWithoutPwd () |
| virtual void | saveDocumentWithPwd () |
| virtual void | setExpandFlag () |
| virtual void | categoryFieldActivated (const QString &str) |
| virtual void | ListPressed (int, QListViewItem *, const QPoint &, int) |
| virtual void | copyClip (const QString &text) |
Public Member Functions | |
| ZSafe (QWidget *parent=0, const char *name=0, WFlags fl=0) | |
| ~ZSafe () | |
| bool | isCategory (QListViewItem *_item) |
| void | getDocPassword (QString title) |
| bool | openDocument (const char *filename, const char *format=0) |
| int | loadInit (const char *filename, const char *password) |
| int | loadEntry (char *entry[4]) |
| int | loadFinalize (void) |
| bool | saveDocument (const char *filename, bool withPwd, const char *format=0) |
| int | saveInit (const char *filename, const char *password) |
| int | saveEntry (char *entry[4]) |
| int | saveFinalize (void) |
| void | saveConf () |
| QPixmap * | getPredefinedIcon (QString category) |
| QString | getFieldLabel (QListViewItem *_item, QString field, QString def) |
| QString | getFieldLabel (QString category, QString field, QString def) |
| void | setCategoryDialogFields (CategoryDialog *dialog) |
| void | setCategoryDialogFields (CategoryDialog *dialog, QString category) |
| void | saveCategoryDialogFields (CategoryDialog *dialog) |
| void | resume (int signum) |
| void | exitZs (int ec) |
| QString | zsaveDialog () |
Static Public Member Functions | |
| static QString | appName () |
Public Attributes | |
| ZListView * | ListView |
| QString | cfgFile |
| QString | iconPath |
| InfoForm * | infoForm |
| CategoryDialog * | categoryDialog |
| QListViewItem * | selectedItem |
| QListViewItem * | copiedItem |
| bool | IsCopy |
| bool | IsCut |
| bool | modified |
| bool | showpwd |
| QListViewItem * | lastSearchedCategory |
| QListViewItem * | lastSearchedItem |
| QString | lastSearchedName |
| QString | lastSearchedUsername |
| QString | lastSearchedComment |
| CategoryList | categories |
| QString | filename |
| long | load_buffer_length |
| long | save_buffer_length |
| QString | m_password |
| int | lastcount |
| int | size |
| FILE * | fd |
| unsigned short | iv [4] |
| char * | buffer |
| int | bufferIndex |
| unsigned short | plaintext [4] |
| Config * | conf |
| bool | expandTree |
| QPopupMenu * | file |
| QTimer | docuTimer |
Static Public Attributes | |
| static const QColor * | evenRowColor = &Qt::white |
| static const QColor * | oddRowColor = new QColor(216,240,255) |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *e) |
Protected Attributes | |
| bool | raiseFlag |
| QTimer | raiseTimer |
Private Slots | |
| void | setDocument (const QString &fileref) |
| void | slotLoadDocu () |
| void | slotRaiseTimer () |
|
|
|
|
||||||||||||||||
|
|
Definition at line 541 of file zsafe.cpp. References quitMe(). |
|
|
|
Definition at line 64 of file zsafe.h. References QString::fromLatin1(). |
|
|
Definition at line 2268 of file zsafe.cpp. References categoryDialog, and setCategoryDialogFields(). Referenced by addCategory(), and editCategory(). |
|
|
Definition at line 3202 of file zsafe.cpp. Referenced by ListPressed(). |
|
|
Definition at line 2845 of file zsafe.cpp. References copiedItem, isCategory(), IsCopy, and selectedItem. Referenced by ListPressed(), and ZSafe(). |
|
|
Definition at line 2834 of file zsafe.cpp. References copiedItem, isCategory(), IsCut, and selectedItem. Referenced by ZSafe(). |
|
|
Definition at line 2434 of file zsafe.cpp. References categories, conf, isCategory(), ListView, modified, CategoryList::remove(), Config::removeEntry(), saveConf(), selectedItem, and tr. Referenced by deletePwd(), and ZSafe(). |
|
|
Definition at line 553 of file zsafe.cpp. References delCategory(), isCategory(), modified, NULL, selectedItem, and tr. Referenced by ZSafe(). |
|
|
|
Definition at line 581 of file zsafe.cpp. References editCategory(), QPEApplication::execDialog(), getFieldLabel(), isCategory(), modified, name, QString::replace(), selectedItem, tr, and TRUE. Referenced by ListPressed(), and ZSafe(). |
|
|
Definition at line 293 of file zsafe.cpp. Referenced by getDocPassword(), openDocument(), quitMe(), and ZSafe(). |
|
|
Definition at line 697 of file zsafe.cpp. References FALSE, i, QString::isEmpty(), lastSearchedCategory, lastSearchedComment, lastSearchedItem, lastSearchedName, lastSearchedUsername, ListView, name, NULL, selectedItem, tr, TRUE, u, and username. Referenced by ZSafe(). |
|
|
Definition at line 2060 of file zsafe.cpp. References exitZs(), filename, QString::findRev(), QString::length(), m_password, QString::right(), and setPasswordDialogDone(). Referenced by openDocument(), and saveDocument(). |
|
||||||||||||||||
|
Definition at line 862 of file zsafe.cpp. References conf, Config::readEntry(), and Config::setGroup(). |
|
||||||||||||||||
|
Definition at line 834 of file zsafe.cpp. References category(), conf, isCategory(), Config::readEntry(), and Config::setGroup(). Referenced by editPwd(), listViewSelected(), newPwd(), setCategoryDialogFields(), and showInfo(). |
|
|
Definition at line 3094 of file zsafe.cpp. References bank_cards_data, general_data, passwords_data, and software_data. Referenced by addCategory(), editCategory(), openDocument(), and readAllEntries(). |
|
|
Definition at line 990 of file zsafe.cpp. References categories, FALSE, CategoryList::find(), NULL, and TRUE. Referenced by copyItem(), cutItem(), delCategory(), deletePwd(), editCategory(), editPwd(), getFieldLabel(), newPwd(), pasteItem(), and showInfo(). |
|
||||||||||||||||||||
|
Definition at line 3167 of file zsafe.cpp. References copyClip(), copyItem(), editPwd(), Opie::Core::OResource::loadPixmap(), pos, showInfo(), Opie::Core::OResource::SmallIcon, tr, Opie::MM::x, and Opie::MM::y. Referenced by ZSafe(). |
|
|
Definition at line 972 of file zsafe.cpp. References FALSE, getFieldLabel(), ListView, NULL, selectedItem, and tr. Referenced by ZSafe(). |
|
|
Definition at line 2966 of file zsafe.cpp. References categories, CategoryList::clear(), conf, OFileSelector::EXTENDED_ALL, FALSE, filename, QString::findRev(), OFileDialog::getOpenFileName(), QDir::homeDirPath(), QMap< Key, T >::insert(), QString::isEmpty(), QString::length(), ListView, m_password, QString::null, openDocument(), QString::right(), saveConf(), saveDocument(), selectedItem, Config::setGroup(), tr, and Config::writeEntry(). Referenced by ZSafe(). |
|
|
Referenced by loadInit(), and openDocument(). |
|
|
Definition at line 1868 of file zsafe.cpp. References PWERR_GOOD. Referenced by openDocument(). |
|
||||||||||||
|
Definition at line 1759 of file zsafe.cpp. References bufferIndex, f, fd, FIELD_SIZE, iv, lastcount, load_buffer_length, loadEntry(), plaintext, PWERR_DATA, PWERR_GOOD, PWERR_OPEN, Krc2::rc2_decrypt(), Krc2::rc2_expandkey(), size, and QFileInfo::size(). Referenced by openDocument(). |
|
|
Definition at line 2905 of file zsafe.cpp. References categories, CategoryList::clear(), conf, FALSE, filename, QString::findRev(), QString::isEmpty(), QString::length(), ListView, modified, QString::right(), saveConf(), saveDocument(), saveDocumentWithPwd(), selectedItem, Config::setGroup(), tr, Config::writeEntry(), and zsaveDialog(). Referenced by openDocument(), and ZSafe(). |
|
|
Definition at line 637 of file zsafe.cpp. References QPEApplication::execDialog(), getFieldLabel(), i, isCategory(), modified, name, qWarning(), QString::replace(), selectedItem, tr, and TRUE. Referenced by ZSafe(). |
|
||||||||||||
|
Definition at line 1535 of file zsafe.cpp. References categories, category(), conf, QFile::exists(), exitZs(), expandTree, f, fd, FIELD_SIZE, filename, CategoryList::find(), QString::fromUtf8(), Category::getCategoryName(), getDocPassword(), getPredefinedIcon(), iconPath, Category::initListItem(), CategoryList::insert(), QString::isEmpty(), QString::isNull(), ListView, loadEntry(), loadFinalize(), loadInit(), m_password, name, newDocument(), password, PWERR_GOOD, qWarning(), Config::readEntry(), Config::readNumEntry(), Category::setCategoryName(), Category::setIcon(), Category::setIconName(), Category::setListItem(), tr, warning(), and Config::writeEntry(). Referenced by loadDocument(), resume(), setDocument(), and slotLoadDocu(). |
|
|
Definition at line 3076 of file zsafe.cpp. References infoForm, raiseFlag, and raiseTimer. |
|
|
Definition at line 2857 of file zsafe.cpp. References copiedItem, isCategory(), IsCopy, IsCut, modified, and selectedItem. Referenced by ZSafe(). |
|
|
Definition at line 2234 of file zsafe.cpp. References exitZs(), FALSE, filename, modified, saveDocument(), and tr. Referenced by ~ZSafe(). |
|
|
|
Definition at line 1002 of file zsafe.cpp. References OFileSelector::EXTENDED_ALL, f, OFileDialog::getOpenFileName(), QDir::homeDirPath(), QMap< Key, T >::insert(), QString::length(), QString::null, QFile::remove(), and tr. Referenced by ZSafe(). |
|
|
Definition at line 1497 of file zsafe.cpp. References filename, infoForm, ListView, m_password, openDocument(), selectedItem, and showpwd. |
|
|
Definition at line 2595 of file zsafe.cpp. References conf, saveConf(), Config::setGroup(), and Config::writeEntry(). Referenced by addCategory(), and editCategory(). |
|
|
Definition at line 303 of file zsafe.cpp. References conf, and Config::setGroup(). Referenced by addCategory(), delCategory(), editCategory(), loadDocument(), newDocument(), saveCategoryDialogFields(), saveDocument(), saveDocumentAs(), setDocument(), setExpandFlag(), and ZSafe(). |
|
||||||||||||||||
|
Definition at line 1875 of file zsafe.cpp. References conf, FALSE, filename, QString::findRev(), getDocPassword(), QString::isEmpty(), QString::length(), ListView, m_password, modified, oendl, owarn, PWERR_DATA, PWERR_GOOD, qWarning(), QString::right(), saveConf(), saveEntry(), saveFinalize(), saveInit(), Global::statusMessage(), tr, and Config::writeEntry(). Referenced by loadDocument(), newDocument(), quitMe(), saveDocumentAs(), saveDocumentWithoutPwd(), and saveDocumentWithPwd(). |
|
|
Definition at line 3026 of file zsafe.cpp. References conf, FALSE, filename, QString::findRev(), QString::isEmpty(), QString::length(), QString::right(), saveConf(), saveDocument(), saveDocumentWithPwd(), selectedItem, Config::setGroup(), tr, Config::writeEntry(), and zsaveDialog(). Referenced by ZSafe(). |
|
|
Definition at line 3054 of file zsafe.cpp. References FALSE, filename, and saveDocument(). Referenced by ZSafe(). |
|
|
Definition at line 3059 of file zsafe.cpp. References filename, and saveDocument(). Referenced by newDocument(), saveDocumentAs(), and ZSafe(). |
|
|
Referenced by saveDocument(). |
|
|
Definition at line 2202 of file zsafe.cpp. References bufferIndex, iv, PWERR_DATA, PWERR_GOOD, and Krc2::rc2_encrypt(). Referenced by saveDocument(). |
|
||||||||||||
|
Definition at line 2093 of file zsafe.cpp. References bufferIndex, f, iv, PWERR_GOOD, PWERR_OPEN, Krc2::rc2_expandkey(), save_buffer_length, and QFileInfo::size(). Referenced by saveDocument(). |
|
||||||||||||
|
Definition at line 2542 of file zsafe.cpp. References categories, conf, QPtrListIterator< type >::current(), d, QDir::entryInfoList(), QFileInfo::fileName(), QDir::Files, CategoryList::find(), getFieldLabel(), QString::isEmpty(), QString::isNull(), QString::length(), list, QString::mid(), QPEApplication::qpeDir(), Config::readEntry(), QString::right(), QDir::setFilter(), and tr. |
|
|
Definition at line 2477 of file zsafe.cpp. References categories, conf, QPtrListIterator< type >::current(), d, QDir::entryInfoList(), QFileInfo::fileName(), QDir::Files, CategoryList::find(), getFieldLabel(), Category::getIconName(), QString::isEmpty(), QString::isNull(), QString::length(), list, QString::mid(), QPEApplication::qpeDir(), Config::readEntry(), QString::right(), selectedItem, QDir::setFilter(), and tr. Referenced by addCategory(), categoryFieldActivated(), and editCategory(). |
|
|
Definition at line 3110 of file zsafe.cpp. References categories, CategoryList::clear(), conf, docuTimer, AppLnk::file(), filename, QString::findRev(), AppLnk::isValid(), QString::length(), ListView, m_password, openDocument(), QString::right(), saveConf(), selectedItem, Config::setGroup(), tr, and Config::writeEntry(). |
|
|
Definition at line 3064 of file zsafe.cpp. References conf, expandTree, saveConf(), Config::setGroup(), and Config::writeEntry(). Referenced by ZSafe(). |
|
|
Definition at line 2054 of file zsafe.cpp. Referenced by getDocPassword(). |
|
|
Definition at line 876 of file zsafe.cpp. References QString::compare(), FALSE, getFieldLabel(), infoForm, isCategory(), QString::isEmpty(), NULL, QString::replace(), selectedItem, QPEApplication::showDialog(), text, tr, and TRUE. Referenced by ZListView::keyPressEvent(), ListPressed(), and ZSafe(). |
|
|
Definition at line 548 of file zsafe.cpp. References filename, and openDocument(). Referenced by ZSafe(). |
|
|
Definition at line 3087 of file zsafe.cpp. References infoForm, and raiseFlag. Referenced by ZSafe(). |
|
|
Definition at line 1028 of file zsafe.cpp. References QFile::close(), Opie::Core::endl(), f, filename, i, IO_WriteOnly, QString::isEmpty(), QString::length(), ListView, NULL, QFile::open(), QString::replace(), t, tr, and zsaveDialog(). Referenced by ZSafe(). |
|
|
Definition at line 3208 of file zsafe.cpp. References OFileSelector::EXTENDED_ALL, OFileDialog::getSaveFileName(), QDir::homeDirPath(), QMap< Key, T >::insert(), QString::null, and tr. Referenced by newDocument(), saveDocumentAs(), and writeAllEntries(). |
|
|
Definition at line 116 of file zsafe.h. Referenced by readAllEntries(). |
|
|
these two are global because save_entry() and save_finalize() both n eed them Definition at line 118 of file zsafe.h. Referenced by loadInit(), saveFinalize(), and saveInit(). |
|
|
Definition at line 91 of file zsafe.h. Referenced by addCategory(), delCategory(), editCategory(), isCategory(), loadDocument(), newDocument(), openDocument(), readAllEntries(), setCategoryDialogFields(), and setDocument(). |
|
|
Definition at line 75 of file zsafe.h. Referenced by addCategory(), categoryFieldActivated(), editCategory(), and ZSafe(). |
|
|
Definition at line 71 of file zsafe.h. Referenced by addCategory(), editCategory(), and ZSafe(). |
|
|
Definition at line 126 of file zsafe.h. Referenced by addCategory(), delCategory(), editCategory(), getFieldLabel(), loadDocument(), newDocument(), openDocument(), readAllEntries(), saveCategoryDialogFields(), saveConf(), saveDocument(), saveDocumentAs(), setCategoryDialogFields(), setDocument(), setExpandFlag(), and ZSafe(). |
|
|
Definition at line 78 of file zsafe.h. Referenced by copyItem(), cutItem(), and pasteItem(). |
|
|
Definition at line 131 of file zsafe.h. Referenced by setDocument(), and ZSafe(). |
|
|
Definition at line 534 of file zsafe.cpp. Referenced by ShadedListItem::paintCell(). |
|
|
Definition at line 128 of file zsafe.h. Referenced by openDocument(), setExpandFlag(), and ZSafe(). |
|
|
these three are needed in all save functions and initialized in save _init() Definition at line 114 of file zsafe.h. Referenced by loadInit(), and openDocument(). |
|
|
|
|
|
Definition at line 95 of file zsafe.h. Referenced by addCategory(), getDocPassword(), loadDocument(), newDocument(), openDocument(), quitMe(), readAllEntries(), resume(), saveDocument(), saveDocumentAs(), saveDocumentWithoutPwd(), saveDocumentWithPwd(), setDocument(), slotLoadDocu(), writeAllEntries(), and ZSafe(). |
|
|
Definition at line 72 of file zsafe.h. Referenced by addCategory(), editCategory(), openDocument(), and readAllEntries(). |
|
|
Definition at line 74 of file zsafe.h. Referenced by paintEvent(), resume(), showInfo(), slotRaiseTimer(), and ZSafe(). |
|
|
Definition at line 79 of file zsafe.h. Referenced by copyItem(), pasteItem(), and ZSafe(). |
|
|
Definition at line 80 of file zsafe.h. Referenced by cutItem(), pasteItem(), and ZSafe(). |
|
|
Definition at line 115 of file zsafe.h. Referenced by loadInit(), saveFinalize(), and saveInit(). |
|
|
globals needed for file loading Definition at line 112 of file zsafe.h. Referenced by loadInit(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 69 of file zsafe.h. Referenced by addCategory(), delCategory(), findPwd(), listViewSelected(), loadDocument(), newDocument(), openDocument(), readAllEntries(), resume(), saveDocument(), setDocument(), writeAllEntries(), and ZSafe(). |
|
|
Definition at line 106 of file zsafe.h. Referenced by loadInit(). |
|
|
password for the file Definition at line 110 of file zsafe.h. Referenced by getDocPassword(), loadDocument(), openDocument(), resume(), saveDocument(), and setDocument(). |
|
|
Definition at line 81 of file zsafe.h. Referenced by addCategory(), delCategory(), deletePwd(), editCategory(), editPwd(), newDocument(), newPwd(), pasteItem(), quitMe(), readAllEntries(), saveDocument(), and ZSafe(). |
|
|
Definition at line 536 of file zsafe.cpp. Referenced by ShadedListItem::paintCell(). |
|
|
Definition at line 119 of file zsafe.h. Referenced by loadInit(). |
|
|
Definition at line 58 of file zsafe.h. Referenced by paintEvent(), slotRaiseTimer(), and ZSafe(). |
|
|
Definition at line 59 of file zsafe.h. Referenced by paintEvent(), and ZSafe(). |
|
|
Definition at line 107 of file zsafe.h. Referenced by saveInit(). |
|
|
Definition at line 77 of file zsafe.h. Referenced by copyItem(), cutItem(), delCategory(), deletePwd(), editCategory(), editPwd(), findPwd(), ZListView::keyPressEvent(), listViewSelected(), loadDocument(), newDocument(), newPwd(), pasteItem(), readAllEntries(), resume(), saveDocumentAs(), setCategoryDialogFields(), setDocument(), showInfo(), and ZSafe(). |
|
|
|
|
|
globals needed for file loading Definition at line 112 of file zsafe.h. Referenced by loadInit(). |
1.4.2