TheExtensionManager *m_pManager; //This mutex is used for synchronizing access to m_vEntries. //Currently it is used to synchronize adding, removing entries and //functions like getItemName, getItemDescription, etc. to prevent //that m_vEntries is accessed at an invalid index. //ToDo: There are many more places where m_vEntries is read and which may //fail. For example the Paint method is probable called from the main thread //while new entries are added / removed in a separate thread. mutable ::osl::Mutex m_entriesMutex;
std::vector< TEntry_Impl > m_vEntries;
std::vector< TEntry_Impl > m_vRemovedEntries;
//Holds weak references to extensions to which is we have added an XEventListener
std::vector< css::uno::WeakReference<
css::deployment::XPackage> > m_vListenerAdded;
//Removes the dead weak references from m_vListenerAdded void cleanVecListenerAdded(); void addEventListenerOnce(css::uno::Reference<css::deployment::XPackage> const & extension);
//These functions are used for automatic testing public: enum { ENTRY_NOTFOUND = -1 };
/** @return The count of the entries in the list box. */
sal_Int32 getItemCount() const;
/** @return The index of the first selected entry in the list box. Whennothingisselected,whichisthecasewhengetItemCountreturns'0',
then this function returns ENTRY_NOTFOUND */ /** @return The index of the first selected entry in the list box. Whennothingisselected,whichisthecasewhengetItemCountreturns'0',
then this function returns ENTRY_NOTFOUND */
sal_Int32 getSelIndex() const;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.