Meeting 54, 28nd of December, 2016
Open, NormalPublic

Description

Weekly Kube Hangout

Time: 28nd of December 2016

Present: Michael, Christian

  1. Agenda
    1. actions / context / controller
    2. Log::Context

Notes

Log:Context

christian reworked the sink log system

folderquery.dataquery
folderquery.dataquery.store

Actions / Context

class ComposerContext : public Kube::Context {

Q_OBJECT

Q_PROPERTY(string messageID READ ...

setId (
loadmail(id)
)

    KUBE_CONTEXT_PROPERTY_VALIDATED(QString, To, to, toValidator)
    KUBE_CONTEXT_PROPERTY(QString, Cc, cc)
    KUBE_CONTEXT_PROPERTY(QString, Bcc, bcc)
    KUBE_CONTEXT_PROPERTY(QString, From, from)
    KUBE_CONTEXT_PROPERTY(QString, Subject, subject)
    KUBE_CONTEXT_PROPERTY(QString, Body, body)
    QValidator *toValidator {
	
    }

};

class ComposerController : public QObject
{

Q_OBJECT
Q_PROPERTY (Kube::Context* mailContext READ mailContext CONSTANT)
Q_PROPERTY (int currentIdentityIndex READ currentIdentityIndex WRITE setCurrentIdentityIndex)

Q_PROPERTY (QString recepientSearchString READ recepientSearchString WRITE setRecepientSearchString)
Q_PROPERTY (QAbstractItemModel* recepientAutocompletionModel READ recepientAutocompletionModel CONSTANT)
Q_PROPERTY (QAbstractItemModel* identityModel READ identityModel CONSTANT)

Q_PROPERTY (Kube::Action* sendAction READ sendAction)
Q_PROPERTY (Kube::Action* saveAsDraftAction READ saveAsDraftAction)
Q_PROPERTY(QVAalidator * toValidator READ readValidator CONTS)

isReady()

public:

explicit ComposerController(QObject *parent = Q_NULLPTR);

Kube::Context* mailContext() const;

QString recepientSearchString() const;
void setRecepientSearchString(const QString &body);

QAbstractItemModel *identityModel() const;
QAbstractItemModel *recepientAutocompletionModel() const;

Q_INVOKABLE void loadMessage(const QVariant &draft, bool loadAsDraft);

Kube::Action* sendAction();
Kube::Action* saveAsDraftAction();

void setCurrentIdentityIndex(int index);
int currentIdentityIndex() const;

public slots:

void clear();

signals:

void done();

private:

Kube::ActionHandler *messageHandler();
void recordForAutocompletion(const QByteArray &addrSpec, const QByteArray &displayName);
void setMessage(const QSharedPointer<KMime::Message> &msg);

int m_currentAccountIndex = -1;
ComposerContext *mContext;

};

ComposerContext *mContext;

mContext→setTo(„sldkjfldsjf“);

controller.mailContext.to: toLineEdit.text

onClicked: (
controller.mailContext.isRead = lineedit.text

)

cmollekopf renamed this task from Meeting 55, 28nd of December, 2016 to Meeting 54, 28nd of December, 2016.