class axl::cf::Url

#include <axl_cf_Url.h>

class Url: public axl::cf::TypeBase
{
public:
    // construction

    Url();
    Url(const Url& src);

    Url(
        CFURLRef p,
        bool isAttach = false
        );

    // methods

    Url&
    operator=(const Url& src);

    Url&
    operator=(CFURLRef p);

    CFURLRef
    getBaseUrl();

    bool
    isDirectory();

    sl::String
    getString();

    sl::String
    getPath();

    sl::String
    getFileSystemPath(CFURLPathStyle pathStyle = kCFURLPOSIXPathStyle);

    bool
    create(
        CFStringRef string,
        CFURLRef baseUrl = NULL
        );

    bool
    create(
        const sl::StringRef& string,
        CFURLRef baseUrl = NULL
        );

    bool
    create(
        CFStringRef filePath,
        CFURLPathStyle pathStyle,
        bool isDirectory,
        CFURLRef baseUrl = NULL
        );

    bool
    create(
        const sl::StringRef& filePath,
        CFURLPathStyle pathStyle,
        bool isDirectory,
        CFURLRef baseUrl = NULL
        );

    bool
    startAccessingSecurityScopedResource();

    void
    stopAccessingSecurityScopedResource();

    bool
    resolveBookmark(
        CFDataRef bookmark,
        uint_t options,
        CFURLRef relativeToUrl = NULL,
        bool* isStale = NULL
        );

    bool
    resolveBookmark(
        const void* p,
        size_t size,
        uint_t options,
        CFURLRef relativeToUrl = NULL,
        bool* isStale = NULL
        );

    bool
    createBookmark(
        cf::Data* data,
        uint_t options,
        CFURLRef relativeToUrl = NULL
        );

    bool
    createBookmark(
        sl::Array<char>* data,
        uint_t options,
        CFURLRef relativeToUrl = NULL
        );
};

Inherited Members

public:
    // methods

    operator T() const;

    TypeBase&
    operator=(const TypeBase& src);

    TypeBase&
    operator=(T p);

    bool
    isNull() const;

    T*
    p();

    void
    attach(T p);

    T
    detach();

    void
    clear();

    void
    copy(T p);

    intptr_t
    getRetainCount() const;

    void
    retain();

    void
    release();

    bool
    isEqual(T type) const;

    CFHashCode
    getHash() const;

    CFTypeID
    getTypeId() const;

    sl::String
    getDescription() const;

    sl::String
    getTypeIdDescription() const;

    void
    show() const;

    sl::String
    toString();