~carlos-mazieri/ubuntu-filemanager-app/samba-ui-03

« back to all changes in this revision

Viewing changes to src/plugin/folderlistmodel/locationurl.h

  • Committer: Tarmac
  • Author(s): carlos-mazieri
  • Date: 2015-08-06 19:57:41 UTC
  • mfrom: (430.2.2 samba-actions-01)
  • Revision ID: tarmac-20150806195741-0vemyy0iahard37d
Clipboard now uses LocationURL class to know which URLs are supported by the file manager.
Added LocationURL::supportedURLs() LocationURL::isSupportedUrl()
New protocols added into File Manager does not require clipboard changes anymore.

Approved by Arto Jalkanen, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef LOCATIONURL_H
23
23
#define LOCATIONURL_H
24
24
 
25
 
#include <QString>
 
25
#include <QStringList>
 
26
class QUrl;
26
27
 
27
28
class LocationUrl
28
29
{
35
36
#if 0
36
37
    static const   QString FishURL;
37
38
#endif
 
39
    /*!
 
40
     * \brief supportedURLs() Tells which URLs are supported by file manager
 
41
     *
 
42
     *   It may be useful for Clipboard handling
 
43
     *
 
44
     * \return URLs list
 
45
     */
 
46
    static const QStringList&  supportedURLs();
 
47
    static bool                isSupportedUrl(const QUrl& url);
38
48
private:
39
49
    LocationUrl();
 
50
    static   const QStringList   m_supportedURLs;
40
51
};
41
52
 
42
53
#endif // LOCATIONURL_H