DragAndDrop.h revision 8c71acd3714d92a0602a95d19fbb2aef0cf5fd5d
/* $Id$ */
/** @file
* DnD: Shared functions between host and guest.
*/
/*
* Copyright (C) 2014 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___VBox_GuestHost_DragAndDrop_h
#define ___VBox_GuestHost_DragAndDrop_h
/** Keep the original paths, don't convert paths to relative ones. */
#define DNDURILIST_FLAGS_ABSOLUTE_PATHS RT_BIT(0)
{
enum Type
{
Unknown = 0,
File,
};
const RTCString &strSrcPath,
const RTCString &strDstPath,
virtual ~DnDURIObject(void);
bool IsComplete(void) const;
static int RebaseURIPath(RTCString &strPath, const RTCString &strBaseOld, const RTCString &strBaseNew);
void closeInternal(void);
union
{
} u;
};
{
DnDURIList(void);
virtual ~DnDURIList(void);
void Clear(void);
void RemoveFirst(void);
* Note: All paths are kept internally as UNIX paths for
* easier conversion/handling! */
/** List of all URI objects added. */
/** Total size of all URI objects, that is, the file
* size of all objects (in bytes). */
};
#endif /* ___VBox_GuestHost_DragAndDrop_h */