author | sandman <sandman> | 2002-10-06 03:26:59 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-06 03:26:59 (UTC) |
commit | a1ebad08d462e682554d39a9beabce125a374452 (patch) (unidiff) | |
tree | 254d7ddc5b257b278172af4952b2bec27b5df3b5 /library/applnk.h | |
parent | 2c16c8767fa5c16c0eeebc7008202a68a61a5308 (diff) | |
download | opie-a1ebad08d462e682554d39a9beabce125a374452.zip opie-a1ebad08d462e682554d39a9beabce125a374452.tar.gz opie-a1ebad08d462e682554d39a9beabce125a374452.tar.bz2 |
- support "Rotation" setting in .desktop applnk file
- changed properties dialog to make Rotation editable
- fixed a long-standing QPE bug:
launcher expects AppLnk::file() to return QString::null for *all real*
applnks (as opposed to doclnks) -- but AppLnk itself initializes this
field to the name of the dir, where the applnk is stored.
This is why qcop "QPE/System" "linkChanged(QString)" xyz.desktop cleared
a whole launcher tab
I hope I didn't break anything with this change ;)
-rw-r--r-- | library/applnk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/applnk.h b/library/applnk.h index 71b62ef..b92ddba 100644 --- a/library/applnk.h +++ b/library/applnk.h | |||
@@ -52,48 +52,49 @@ public: | |||
52 | QString type() const; | 52 | QString type() const; |
53 | QString rotation() const { return mRotation; } | 53 | QString rotation() const { return mRotation; } |
54 | QString comment() const { return mComment; } | 54 | QString comment() const { return mComment; } |
55 | QString file() const; | 55 | QString file() const; |
56 | QString linkFile() const; | 56 | QString linkFile() const; |
57 | QStringList mimeTypes() const { return mMimeTypes; } | 57 | QStringList mimeTypes() const { return mMimeTypes; } |
58 | QStringList mimeTypeIcons() const { return mMimeTypeIcons; } | 58 | QStringList mimeTypeIcons() const { return mMimeTypeIcons; } |
59 | const QArray<int> &categories() const; | 59 | const QArray<int> &categories() const; |
60 | int id() const { return mId; } | 60 | int id() const { return mId; } |
61 | 61 | ||
62 | bool fileKnown() const { return !mFile.isNull(); } | 62 | bool fileKnown() const { return !mFile.isNull(); } |
63 | bool linkFileKnown() const { return !mLinkFile.isNull(); } | 63 | bool linkFileKnown() const { return !mLinkFile.isNull(); } |
64 | 64 | ||
65 | void execute() const; | 65 | void execute() const; |
66 | void execute(const QStringList& args) const; | 66 | void execute(const QStringList& args) const; |
67 | void removeFiles(); | 67 | void removeFiles(); |
68 | void removeLinkFile(); | 68 | void removeLinkFile(); |
69 | 69 | ||
70 | void setName( const QString& docname ); | 70 | void setName( const QString& docname ); |
71 | void setExec( const QString& exec ); | 71 | void setExec( const QString& exec ); |
72 | void setFile( const QString& filename ); | 72 | void setFile( const QString& filename ); |
73 | void setLinkFile( const QString& filename ); | 73 | void setLinkFile( const QString& filename ); |
74 | void setComment( const QString& comment ); | 74 | void setComment( const QString& comment ); |
75 | void setType( const QString& mimetype ); | 75 | void setType( const QString& mimetype ); |
76 | inline void setRotation ( const QString &rotation ) { mRotation = rot; } // inline for BC | ||
76 | void setIcon( const QString& iconname ); | 77 | void setIcon( const QString& iconname ); |
77 | void setCategories( const QArray<int> &v ); | 78 | void setCategories( const QArray<int> &v ); |
78 | bool writeLink() const; | 79 | bool writeLink() const; |
79 | 80 | ||
80 | void setProperty(const QString& key, const QString& value); | 81 | void setProperty(const QString& key, const QString& value); |
81 | QString property(const QString& key) const; | 82 | QString property(const QString& key) const; |
82 | 83 | ||
83 | #ifdef QTOPIA_INTERNAL_PRELOADACCESS | 84 | #ifdef QTOPIA_INTERNAL_PRELOADACCESS |
84 | bool isPreloaded() const; | 85 | bool isPreloaded() const; |
85 | void setPreloaded(bool yesNo); | 86 | void setPreloaded(bool yesNo); |
86 | #endif | 87 | #endif |
87 | 88 | ||
88 | #ifdef QTOPIA_INTERNAL_APPLNKASSIGN | 89 | #ifdef QTOPIA_INTERNAL_APPLNKASSIGN |
89 | AppLnk &operator=(const AppLnk &other); | 90 | AppLnk &operator=(const AppLnk &other); |
90 | #endif | 91 | #endif |
91 | 92 | ||
92 | protected: | 93 | protected: |
93 | QString mName; | 94 | QString mName; |
94 | 95 | ||
95 | /* remove for Qtopia 3.0 -zecke */ | 96 | /* remove for Qtopia 3.0 -zecke */ |
96 | QPixmap mPixmap; | 97 | QPixmap mPixmap; |
97 | 98 | ||
98 | /* remove for Qtopia 3.0 -zecke */ | 99 | /* remove for Qtopia 3.0 -zecke */ |
99 | QPixmap mBigPixmap; | 100 | QPixmap mBigPixmap; |