Source

qndjcrypt / ndjkey.h

Full commit
#ifndef NDJKEY_H
#define NDJKEY_H

#include <QObject>
#include <algorithm>

class ndjKey : public QObject
{
    Q_OBJECT
public:
    explicit ndjKey(QObject *parent = 0);
    void generateNewKey();
    void exportKey();
    void importKey();
    void saveKey();

    //! Function seeks for char in key
    /*!
      \param c char which coordinates to find
      \param x first key coordinate for \param c
      \param y second key coordinate for \param c
    */
    void findXY(char c, int &x, int &y);

    //! Function
    /*!
      \param x first key coordinate to find char
      \param y second key coordinate to find char
      \return char founded by \param x and \param y key coordinates
    */
    char findChar(int x, int y);

private:
    //! KeyHolder variable
    /*! Holds key data */
    char keyHolder[16][16];

signals:

public slots:

};

#endif // NDJKEY_H