text: #include "encode.h"
  
  Encode::Encode(QObject *parent) : ShareProperty(parent)
  {
  
  }
  
  //one fixed Key
  //Label
  //Date
  //nonce
  void Encode::slotEncode (QStringList FielnameList)
  {
    generateCode ();
    QString cmd = QString("7z.exe a ")+ FielnameList.at (0) + ".7z" + QString(" -p") + Code +
        + " -mhe ";
    foreach (QString fileName, FielnameList) {
      cmd += fileName + QString(" ");
    }
    qDebug() <<"CMD:" << cmd;
    //QMessageBox::about(NULL, "Information", ("cmd: " + cmd));
  
    caller->start (cmd);
    caller->waitForFinished ();
    QByteArray qbt = caller->readAllStandardOutput();
    QString msg = QString::fromLocal8Bit(qbt);
    emit emitStatus (msg);
  }
  