-rw-r--r-- | library/applnk.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/library/applnk.h b/library/applnk.h index b4590d3..87971f7 100644 --- a/library/applnk.h +++ b/library/applnk.h | |||
@@ -57,67 +57,65 @@ public: | |||
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 &rot ) { mRotation = rot; } // inline for BC | 76 | inline void setRotation ( const QString &rot ) { mRotation = rot; } // inline for BC |
77 | void setIcon( const QString& iconname ); | 77 | void setIcon( const QString& iconname ); |
78 | void setCategories( const QArray<int> &v ); | 78 | void setCategories( const QArray<int> &v ); |
79 | bool writeLink() const; | 79 | bool writeLink() const; |
80 | 80 | ||
81 | void setProperty(const QString& key, const QString& value); | 81 | void setProperty(const QString& key, const QString& value); |
82 | QString property(const QString& key) const; | 82 | QString property(const QString& key) const; |
83 | 83 | ||
84 | #ifdef QTOPIA_INTERNAL_PRELOADACCESS | 84 | #ifdef QTOPIA_INTERNAL_PRELOADACCESS |
85 | bool isPreloaded() const; | 85 | bool isPreloaded() const; |
86 | void setPreloaded(bool yesNo); | 86 | void setPreloaded(bool yesNo); |
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | #ifdef QTOPIA_INTERNAL_APPLNKASSIGN | ||
90 | AppLnk &operator=(const AppLnk &other); | 89 | AppLnk &operator=(const AppLnk &other); |
91 | #endif | ||
92 | 90 | ||
93 | protected: | 91 | protected: |
94 | QString mName; | 92 | QString mName; |
95 | 93 | ||
96 | /* remove for Qtopia 3.0 -zecke */ | 94 | /* remove for Qtopia 3.0 -zecke */ |
97 | QPixmap mPixmap; | 95 | QPixmap mPixmap; |
98 | 96 | ||
99 | /* remove for Qtopia 3.0 -zecke */ | 97 | /* remove for Qtopia 3.0 -zecke */ |
100 | QPixmap mBigPixmap; | 98 | QPixmap mBigPixmap; |
101 | 99 | ||
102 | QString mExec; | 100 | QString mExec; |
103 | QString mType; | 101 | QString mType; |
104 | QString mRotation; | 102 | QString mRotation; |
105 | QString mComment; | 103 | QString mComment; |
106 | QString mFile; | 104 | QString mFile; |
107 | QString mLinkFile; | 105 | QString mLinkFile; |
108 | QString mIconFile; | 106 | QString mIconFile; |
109 | QStringList mMimeTypes; | 107 | QStringList mMimeTypes; |
110 | QStringList mMimeTypeIcons; | 108 | QStringList mMimeTypeIcons; |
111 | int mId; | 109 | int mId; |
112 | static int lastId; | 110 | static int lastId; |
113 | AppLnkPrivate *d; | 111 | AppLnkPrivate *d; |
114 | friend class AppLnkSet; | 112 | friend class AppLnkSet; |
115 | 113 | ||
116 | virtual void invoke(const QStringList& args) const; | 114 | virtual void invoke(const QStringList& args) const; |
117 | bool ensureLinkExists() const; | 115 | bool ensureLinkExists() const; |
118 | void storeLink() const; | 116 | void storeLink() const; |
119 | 117 | ||
120 | private: | 118 | private: |
121 | const QPixmap& pixmap(int pos, int size) const; | 119 | const QPixmap& pixmap(int pos, int size) const; |
122 | }; | 120 | }; |
123 | 121 | ||