equal
deleted
inserted
replaced
22 |
22 |
23 #include "caurlhandler.h" |
23 #include "caurlhandler.h" |
24 |
24 |
25 static const QString caAttrUrl("url"); |
25 static const QString caAttrUrl("url"); |
26 |
26 |
|
27 /*! |
|
28 * Constructor. |
|
29 */ |
27 CaUrlHandler::CaUrlHandler(QObject *parent) |
30 CaUrlHandler::CaUrlHandler(QObject *parent) |
28 { |
31 { |
29 Q_UNUSED(parent); |
32 Q_UNUSED(parent); |
30 } |
33 } |
31 |
34 |
|
35 /*! |
|
36 * Destructor. |
|
37 */ |
32 CaUrlHandler::~CaUrlHandler() |
38 CaUrlHandler::~CaUrlHandler() |
33 { |
39 { |
34 } |
40 } |
35 |
41 |
|
42 /*! |
|
43 * Execute a given command. |
|
44 * \param entry a reference to CaEntry instance. |
|
45 * \param command a given command. |
|
46 * \retval an error code. |
|
47 */ |
36 int CaUrlHandler::execute(const CaEntry &entry, const QString &command) |
48 int CaUrlHandler::execute(const CaEntry &entry, const QString &command) |
37 { |
49 { |
38 int err(KErrGeneral); |
50 int err(KErrGeneral); |
39 if (command == caCmdOpen) { |
51 if (command == caCmdOpen) { |
40 QString attribute = entry.attribute(caAttrUrl); |
52 QString attribute = entry.attribute(caAttrUrl); |